From f666ffd0b7a8cd247da19446fd682eb7c2f7bd46 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Wed, 16 Dec 2015 14:00:39 +0100 Subject: curses: Make float2str static Fix sparse message: out_curses.c:140:6: warning: symbol 'float2str' was not declared. Should it be static? Signed-off-by: Thomas Graf --- src/out_curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/out_curses.c b/src/out_curses.c index c973789..d5443fc 100644 --- a/src/out_curses.c +++ b/src/out_curses.c @@ -137,7 +137,7 @@ static void apply_layout(int layout) attrset(cfg_layout[layout].l_attr); } -char *float2str(double value, int width, int prec, char *buf, size_t len) +static char *float2str(double value, int width, int prec, char *buf, size_t len) { snprintf(buf, len, "%'*.*f", width, value == 0.0f ? 0 : prec, value); -- cgit v1.2.3