]> git.sur5r.net Git - u-boot/commitdiff
tiny-printf: add static to locally used functions
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 12 Feb 2017 09:08:43 +0000 (18:08 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 15 Mar 2017 00:40:22 +0000 (20:40 -0400)
These two functions are only used in lib/tiny-printf.c .

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Stefan Roese <sr@denx.de>
lib/tiny-printf.c

index dfa843240fc89484bbe82e939eb4d8d12fc3a315..6def8f98aa4111e3800a4e723cf93f83c6d0fdb0 100644 (file)
@@ -22,7 +22,7 @@ struct printf_info {
        void (*putc)(struct printf_info *info, char ch);
 };
 
-void putc_normal(struct printf_info *info, char ch)
+static void putc_normal(struct printf_info *info, char ch)
 {
        putc(ch);
 }
@@ -52,7 +52,7 @@ static void div_out(struct printf_info *info, unsigned long *num,
                out_dgt(info, dgt);
 }
 
-int _vprintf(struct printf_info *info, const char *fmt, va_list va)
+static int _vprintf(struct printf_info *info, const char *fmt, va_list va)
 {
        char ch;
        char *p;