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];
void gui_skin_reset(struct gui_skin *skin)
static void gui_skin_reset(struct gui_skin *skin)
{
skin->filename[0] = '\0';
skin->buffer_start = NULL;

View File

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

View File

@ -77,7 +77,7 @@ void screen_helper_setfont(int font)
#endif
}
int screen_helper_getuifont(void)
static int screen_helper_getuifont(void)
{
#ifdef HAVE_LCD_BITMAP
return global_status.font_id[SCREEN_MAIN];
@ -86,7 +86,7 @@ int screen_helper_getuifont(void)
#endif
}
void screen_helper_setuifont(int font)
static void screen_helper_setuifont(int font)
{
#ifdef HAVE_LCD_BITMAP
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;
void shortcuts_ata_idle_callback(void* data)
static void shortcuts_ata_idle_callback(void* data)
{
(void)data;
int fd;
@ -223,7 +223,7 @@ void shortcuts_add(enum shortcut_type type, const char* value)
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)parameters;
@ -388,7 +388,7 @@ static enum themable_icons shortcut_menu_get_icon(int selected_item, void * data
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;
struct shortcut *sc = get_shortcut(selected_item);

View File

@ -348,7 +348,7 @@ const char* font_filename(int font_id)
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;