]> source.dussan.org Git - rspamd.git/commitdiff
Fix for *BSD.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 26 Jul 2011 14:08:18 +0000 (18:08 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 26 Jul 2011 14:08:18 +0000 (18:08 +0400)
src/printf.c

index 80af94e863eaf2123e7061869a34648db9819b6f..97b326547bf8688a29049ccf3c33876192cacb33 100644 (file)
@@ -31,7 +31,7 @@
 static const int maxscale = 7;
 
 static gchar *
-humanize_number (gchar *buf, gchar *last, gint64 num, gboolean bytes)
+rspamd_humanize_number (gchar *buf, gchar *last, gint64 num, gboolean bytes)
 {
        const gchar *prefixes;
        int i, r, remainder, sign;
@@ -646,7 +646,7 @@ rspamd_vsnprintf (gchar *buf, glong max, const gchar *fmt, va_list args)
                                buf = rspamd_sprintf_num (buf, last, ui64, zero, hex, width);
                        }
                        else {
-                               buf = humanize_number (buf, last, ui64, bytes);
+                               buf = rspamd_humanize_number (buf, last, ui64, bytes);
                        }
 
                        fmt++;