summaryrefslogtreecommitdiff
path: root/lib/tiny-printf.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-02-12 18:08:43 +0900
committerTom Rini <trini@konsulko.com>2017-03-14 20:40:22 -0400
commit433cbfb3b37404d6150a1aba94309bc0ed661689 (patch)
tree400bb29be4bb991928754cdf8e99d7c718aea1c9 /lib/tiny-printf.c
parente4290aa10af0a69c81bbb3be1a8aef7465aed2ad (diff)
tiny-printf: add static to locally used functions
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>
Diffstat (limited to 'lib/tiny-printf.c')
-rw-r--r--lib/tiny-printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c
index dfa843240fc..6def8f98aa4 100644
--- a/lib/tiny-printf.c
+++ b/lib/tiny-printf.c
@@ -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;