]> git.sur5r.net Git - u-boot/commitdiff
common/menu.c: Fix build warning
authorAnatolij Gustschin <agust@denx.de>
Sat, 3 Dec 2011 06:46:07 +0000 (06:46 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 5 Dec 2011 22:26:40 +0000 (23:26 +0100)
Fix:
menu.c: In function 'menu_item_print':
menu.c:91: warning: passing argument 1 of 'putc' makes integer from
pointer without a cast

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
common/menu.c

index ca1baefbbd5fcf8bc2426829065242c0d1544b52..5e0817c454bdd128390114dacf315066cba43140 100644 (file)
@@ -88,7 +88,7 @@ static inline void *menu_item_print(struct menu *m,
                                void *extra)
 {
        if (!m->item_data_print) {
-               putc(item->key);
+               puts(item->key);
                putc('\n');
        } else {
                m->item_data_print(item->data);