diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2008-04-20 10:24:15 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-04-20 10:24:15 +0000 |
| commit | db2d61f4eab4adc099abeaafa5e6f97d75f92824 (patch) | |
| tree | 5446b007aafb5d26a622a9d40e5be3e5ecebafa4 /firmware | |
| parent | 8924686224eef5672bb3087e0ed358b745d603d1 (diff) | |
| download | rockbox-db2d61f4eab4adc099abeaafa5e6f97d75f92824.zip rockbox-db2d61f4eab4adc099abeaafa5e6f97d75f92824.tar.gz rockbox-db2d61f4eab4adc099abeaafa5e6f97d75f92824.tar.bz2 rockbox-db2d61f4eab4adc099abeaafa5e6f97d75f92824.tar.xz | |
Killed unnecessary global variables by making them static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17184 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/common/dircache.c | 2 | ||||
| -rw-r--r-- | firmware/drivers/audio/as3514.c | 2 | ||||
| -rw-r--r-- | firmware/drivers/tuner/lv24020lp.c | 2 | ||||
| -rw-r--r-- | firmware/font.c | 4 | ||||
| -rw-r--r-- | firmware/scroll_engine.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c index bf8ff45..d2a0b31 100644 --- a/firmware/common/dircache.c +++ b/firmware/common/dircache.c @@ -48,7 +48,7 @@ #define DIRCACHE_STOP 2 #define MAX_OPEN_DIRS 8 -DIR_CACHED opendirs[MAX_OPEN_DIRS]; +static DIR_CACHED opendirs[MAX_OPEN_DIRS]; static struct dircache_entry *fd_bindings[MAX_OPEN_FILES]; static struct dircache_entry *dircache_root; diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index bcc6ba1..f378217 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c @@ -42,7 +42,7 @@ const struct sound_settings_info audiohw_settings[] = { }; /* Shadow registers */ -struct as3514_info +static struct as3514_info { int vol_r; /* Cached volume level (R) */ int vol_l; /* Cached volume level (L) */ diff --git a/firmware/drivers/tuner/lv24020lp.c b/firmware/drivers/tuner/lv24020lp.c index a1dc15f..31fe939 100644 --- a/firmware/drivers/tuner/lv24020lp.c +++ b/firmware/drivers/tuner/lv24020lp.c @@ -246,7 +246,7 @@ static const int sw_cap_high = 191; static int coef_00, coef_01, coef_10, coef_11; /* DAC control register set values */ -int if_set, sd_set; +static int if_set, sd_set; static inline bool tuner_awake(void) { diff --git a/firmware/font.c b/firmware/font.c index c58087d..d3d999e 100644 --- a/firmware/font.c +++ b/firmware/font.c @@ -61,8 +61,8 @@ static unsigned char *eofptr; /* Font cache structures */ static struct font_cache font_cache_ui; static int fnt_file = -1; /* >=0 if font is cached */ -uint32_t file_width_offset; /* offset to file width data */ -uint32_t file_offset_offset; /* offset to file offset data */ +static uint32_t file_width_offset; /* offset to file width data */ +static uint32_t file_offset_offset; /* offset to file offset data */ static void cache_create(int maxwidth, int height); static int long_offset = 0; static int glyph_file; diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c index 4783e9f..fac104e 100644 --- a/firmware/scroll_engine.c +++ b/firmware/scroll_engine.c @@ -42,7 +42,7 @@ static void scroll_thread(void); static char scroll_stack[DEFAULT_STACK_SIZE*3]; static const char scroll_name[] = "scroll"; -struct scrollinfo lcd_scroll[LCD_SCROLLABLE_LINES]; +static struct scrollinfo lcd_scroll[LCD_SCROLLABLE_LINES]; #ifdef HAVE_REMOTE_LCD struct scrollinfo lcd_remote_scroll[LCD_REMOTE_SCROLLABLE_LINES]; |