diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
commit | eb737947eb2afe98f9dac1121fa37d1b746c5657 (patch) | |
tree | 02aa7752555cc4a47b1a9b423066bbdc52a7e8c5 /src/libutil/printf.c | |
parent | e0bfa35ee937940f20a5675bc7582cfc83c2866b (diff) | |
download | rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.tar.gz rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.zip |
Reorganize includes to reduce namespace pollution.
Diffstat (limited to 'src/libutil/printf.c')
-rw-r--r-- | src/libutil/printf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libutil/printf.c b/src/libutil/printf.c index 3813524a0..67a2f3d98 100644 --- a/src/libutil/printf.c +++ b/src/libutil/printf.c @@ -25,7 +25,7 @@ #include "printf.h" #include "fstring.h" -#include "rspamd.h" +#include <math.h> /** * From FreeBSD libutil code @@ -449,7 +449,6 @@ rspamd_vprintf_common (rspamd_printf_append_func func, if (*fmt == '*') { d = (gint)va_arg (args, gint); if (G_UNLIKELY (d < 0)) { - msg_err ("critical error: fraction width is less than 0"); return 0; } frac_width = (guint)d; @@ -466,7 +465,6 @@ rspamd_vprintf_common (rspamd_printf_append_func func, case '*': d = (gint)va_arg (args, gint); if (G_UNLIKELY (d < 0)) { - msg_err ("critical error: size is less than 0"); return 0; } slen = (glong)d; @@ -715,7 +713,7 @@ rspamd_vprintf_common (rspamd_printf_append_func func, continue; case 'N': - c = LF; + c = '\n'; RSPAMD_PRINTF_APPEND (&c, 1); continue; |