diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-08 01:12:44 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-08 01:12:44 +0100 |
commit | 3a233b827783151c4c08985224782f1dcce43a8f (patch) | |
tree | 5377813a1b3369d2700050df921ec0b33426b7f6 /src/xine-engine | |
parent | f12149f0ca2743e6f5f9d39ba53b27c306137597 (diff) | |
download | xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.gz xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.bz2 |
Mark various private arrays, structs & fn parameters as static and/or const.
Two of the modified files are headers, but each contains definitions as well as
declarations and is only ever used once.
Diffstat (limited to 'src/xine-engine')
-rw-r--r-- | src/xine-engine/audio_out.c | 2 | ||||
-rw-r--r-- | src/xine-engine/buffer_types.c | 4 | ||||
-rw-r--r-- | src/xine-engine/configfile.c | 2 | ||||
-rw-r--r-- | src/xine-engine/load_plugins.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 89fbdde1a..d39c99aba 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -174,7 +174,7 @@ typedef struct { }sXYData; -static sIIRCoefficients iir_cf[] = { +static const sIIRCoefficients iir_cf[] = { /* 31 Hz*/ { EQ_REAL(9.9691562441e-01), EQ_REAL(1.5421877947e-03), EQ_REAL(1.9968961468e+00) }, /* 62 Hz*/ diff --git a/src/xine-engine/buffer_types.c b/src/xine-engine/buffer_types.c index 2d455b67c..619a34c4c 100644 --- a/src/xine-engine/buffer_types.c +++ b/src/xine-engine/buffer_types.c @@ -59,7 +59,7 @@ typedef struct audio_db_s { } audio_db_t; -static video_db_t video_db[] = { +static const video_db_t video_db[] = { { { meFOURCC('m', 'p', 'e', 'g'), @@ -767,7 +767,7 @@ static video_db_t video_db[] = { }; -static audio_db_t audio_db[] = { +static const audio_db_t audio_db[] = { { { 0x2000, diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c index 28b44fd51..ec5f5c856 100644 --- a/src/xine-engine/configfile.c +++ b/src/xine-engine/configfile.c @@ -51,7 +51,7 @@ typedef struct { const char *new; } config_entry_translation_t; -static config_entry_translation_t config_entry_translation[] = { +static const config_entry_translation_t config_entry_translation[] = { { "audio.a52_pass_through", "" }, { "audio.alsa_a52_device", "audio.device.alsa_passthrough_device" }, { "audio.alsa_default_device", "audio.device.alsa_default_device" }, diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index d35eba736..c72241487 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -96,7 +96,7 @@ static void remove_segv_handler(void){ #endif /* 0 */ -static int plugin_iface_versions[] = { +static const int plugin_iface_versions[] = { INPUT_PLUGIN_IFACE_VERSION, DEMUXER_PLUGIN_IFACE_VERSION, AUDIO_DECODER_IFACE_VERSION, |