summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2015-12-16 14:00:39 +0100
committerThomas Graf <tgraf@suug.ch>2015-12-16 14:00:39 +0100
commitf666ffd0b7a8cd247da19446fd682eb7c2f7bd46 (patch)
treedafd2fcd6c18ed12e573dcc520286a28fbb48f58
parent559e31e62f2dbbb3b6f415070bf459a98614cf0e (diff)
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 <tgraf@suug.ch>
-rw-r--r--src/out_curses.c2
1 files changed, 1 insertions, 1 deletions
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);