mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-15 23:36:59 +00:00
output: fix implicit conversion
src/output.c:731:38: warning: implicit conversion from ‘float’ to ‘double’ when passing argument to function [-Wdouble-promotion] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
679d63dd9f
commit
a192f51545
1 changed files with 1 additions and 1 deletions
|
|
@ -726,7 +726,7 @@ static void output_double_color(struct conf_t *state,
|
|||
* \param type HTML tag name.
|
||||
* \param fl Actual payload of the printout.
|
||||
*/
|
||||
static void output_float(FILE *restrict f, char const *restrict type, float fl)
|
||||
static void output_float(FILE *restrict f, char const *restrict type, double fl)
|
||||
{
|
||||
fprintf(f, "<%s>%.3f</%s>\n", type, fl, type);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue