From eb737947eb2afe98f9dac1121fa37d1b746c5657 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Oct 2015 13:15:15 +0100 Subject: Reorganize includes to reduce namespace pollution. --- src/libutil/printf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libutil/printf.c') 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 /** * 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; -- cgit v1.2.3