Make functions static (where possible) to reduce code size (trivial).
Also, disable header() for now, as it's not being used. Here are some stats on size differences: - ls 23820 coreinfo.old.elf 23564 coreinfo.new.elf - size *elf text data bss dec hex filename 15199 2468 181904 199571 30b93 coreinfo.old.elf 14934 2468 181912 199314 30a92 coreinfo.new.elf Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3187 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -50,7 +50,7 @@ void print_module_title(WINDOW *win, const char *title)
|
||||
waddch(win, '\304');
|
||||
}
|
||||
|
||||
void print_menu(void)
|
||||
static void print_menu(void)
|
||||
{
|
||||
int i, j;
|
||||
char menu[80];
|
||||
@@ -67,7 +67,7 @@ void print_menu(void)
|
||||
mvprintw(23, 0, menu);
|
||||
}
|
||||
|
||||
void center(int row, const char *str)
|
||||
static void center(int row, const char *str)
|
||||
{
|
||||
int len = strlen(str);
|
||||
int j;
|
||||
@@ -80,7 +80,9 @@ void center(int row, const char *str)
|
||||
mvprintw(row, (SCREEN_X - len) / 2, str);
|
||||
}
|
||||
|
||||
void header(int row, const char *str)
|
||||
/* FIXME: Currently unused. */
|
||||
#if 0
|
||||
static void header(int row, const char *str)
|
||||
{
|
||||
char buf[SCREEN_X];
|
||||
char *ptr = buf;
|
||||
@@ -97,6 +99,7 @@ void header(int row, const char *str)
|
||||
|
||||
mvprintw(row, 0, buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void redraw_module(void)
|
||||
{
|
||||
@@ -105,7 +108,7 @@ static void redraw_module(void)
|
||||
refresh();
|
||||
}
|
||||
|
||||
void loop(void)
|
||||
static void loop(void)
|
||||
{
|
||||
int key;
|
||||
|
||||
|
Reference in New Issue
Block a user