diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-23 15:34:04 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-23 15:34:04 +0000 |
commit | 0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666 (patch) | |
tree | a0483c5458f6b6bdce68892334ffb53f265b49a4 /payloads/coreinfo/coreinfo.c | |
parent | b0e3f39a39431f6448f4985a10379a580cf4c13c (diff) |
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
Diffstat (limited to 'payloads/coreinfo/coreinfo.c')
-rw-r--r-- | payloads/coreinfo/coreinfo.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index de183886ca..c81e9b3895 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -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; |