aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-22 16:26:29 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-22 16:26:29 +0000
commit07d6070ead1579494e251c654f9424ec184b6851 (patch)
tree5aa4f4dbd8c7a6aa6b5faeb5553edeb6f523d93c /src
parentff982f60325a8cac8517f8383377c01a8dfb0a37 (diff)
downloadrspamd-07d6070ead1579494e251c654f9424ec184b6851.tar.gz
rspamd-07d6070ead1579494e251c654f9424ec184b6851.zip
Remove ambiguity between %b format modifiers
Diffstat (limited to 'src')
-rw-r--r--src/libserver/cfg_rcl.c4
-rw-r--r--src/libutil/printf.c2
-rw-r--r--src/libutil/printf.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 014a44183..7ddc14f93 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -2030,7 +2030,7 @@ rspamd_rcl_parse_struct_string (rspamd_mempool_t *pool,
break;
case UCL_BOOLEAN:
*target = rspamd_mempool_alloc (pool, num_str_len);
- rspamd_snprintf (*target, num_str_len, "%b", (gboolean)obj->value.iv);
+ rspamd_snprintf (*target, num_str_len, "%B", (gboolean)obj->value.iv);
break;
default:
g_set_error (err,
@@ -2378,7 +2378,7 @@ rspamd_rcl_parse_struct_string_list (rspamd_mempool_t *pool,
break;
case UCL_BOOLEAN:
val = rspamd_mempool_alloc (pool, num_str_len);
- rspamd_snprintf (val, num_str_len, "%b", (gboolean)cur->value.iv);
+ rspamd_snprintf (val, num_str_len, "%B", (gboolean)cur->value.iv);
break;
default:
g_set_error (err,
diff --git a/src/libutil/printf.c b/src/libutil/printf.c
index 047532dd2..34638dbf6 100644
--- a/src/libutil/printf.c
+++ b/src/libutil/printf.c
@@ -738,7 +738,7 @@ rspamd_vprintf_common (rspamd_printf_append_func func,
continue;
- case 'b':
+ case 'B':
bv = (gboolean) va_arg (args, double);
RSPAMD_PRINTF_APPEND (bv ? "true" : "false", bv ? 4 : 5);
diff --git a/src/libutil/printf.h b/src/libutil/printf.h
index f2c46ffc9..95d344bee 100644
--- a/src/libutil/printf.h
+++ b/src/libutil/printf.h
@@ -41,7 +41,7 @@
* %[0][width][.width]F long double
* %[0][width][.width]g double
* %[0][width][.width]G long double
- * %b boolean (true or false)
+ * %B boolean (true or false)
* %P pid_t
* %r rlim_t
* %p void *