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>
This commit is contained in:
parent
559e31e62f
commit
f666ffd0b7
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user