1
0
Fork 0
forked from len0rd/rockbox

Another round of making local functions static

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31384 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2011-12-20 20:35:28 +00:00
parent 0cb0b50236
commit cb972abc48
5 changed files with 7 additions and 9 deletions

View file

@ -73,7 +73,7 @@ static struct gui_skin {
} skins[SKINNABLE_SCREENS_COUNT][NB_SCREENS]; } skins[SKINNABLE_SCREENS_COUNT][NB_SCREENS];
void gui_skin_reset(struct gui_skin *skin) static void gui_skin_reset(struct gui_skin *skin)
{ {
skin->filename[0] = '\0'; skin->filename[0] = '\0';
skin->buffer_start = NULL; skin->buffer_start = NULL;

View file

@ -378,8 +378,6 @@ static int load_bmarks(void* param)
return GO_TO_PREVIOUS; return GO_TO_PREVIOUS;
} }
int time_screen(void* ignored);
/* These are all static const'd from apps/menus/ *.c /* These are all static const'd from apps/menus/ *.c
so little hack so we can use them */ so little hack so we can use them */
extern struct menu_item_ex extern struct menu_item_ex

View file

@ -77,7 +77,7 @@ void screen_helper_setfont(int font)
#endif #endif
} }
int screen_helper_getuifont(void) static int screen_helper_getuifont(void)
{ {
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
return global_status.font_id[SCREEN_MAIN]; return global_status.font_id[SCREEN_MAIN];
@ -86,7 +86,7 @@ int screen_helper_getuifont(void)
#endif #endif
} }
void screen_helper_setuifont(int font) static void screen_helper_setuifont(int font)
{ {
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
global_status.font_id[SCREEN_MAIN] = font; global_status.font_id[SCREEN_MAIN] = font;

View file

@ -168,7 +168,7 @@ static void init_shortcut(struct shortcut* sc)
} }
static int first_idx_to_writeback = -1; static int first_idx_to_writeback = -1;
void shortcuts_ata_idle_callback(void* data) static void shortcuts_ata_idle_callback(void* data)
{ {
(void)data; (void)data;
int fd; int fd;
@ -223,7 +223,7 @@ void shortcuts_add(enum shortcut_type type, const char* value)
register_storage_idle_func(shortcuts_ata_idle_callback); register_storage_idle_func(shortcuts_ata_idle_callback);
} }
int readline_cb(int n, char *buf, void *parameters) static int readline_cb(int n, char *buf, void *parameters)
{ {
(void)n; (void)n;
(void)parameters; (void)parameters;
@ -388,7 +388,7 @@ static enum themable_icons shortcut_menu_get_icon(int selected_item, void * data
return sc->icon; return sc->icon;
} }
int shortcut_menu_speak_item(int selected_item, void * data) static int shortcut_menu_speak_item(int selected_item, void * data)
{ {
(void)data; (void)data;
struct shortcut *sc = get_shortcut(selected_item); struct shortcut *sc = get_shortcut(selected_item);

View file

@ -348,7 +348,7 @@ const char* font_filename(int font_id)
return NULL; return NULL;
} }
size_t font_glyphs_to_bufsize(struct font *pf, int glyphs) static size_t font_glyphs_to_bufsize(struct font *pf, int glyphs)
{ {
size_t bufsize; size_t bufsize;