aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-09 11:42:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-09 18:41:43 +0000
commit9ac5c84396116cd34268cc1c1bb2cdcbdf00bc1c (patch)
tree45574eddff572f81c8096542afecd0807d5b8bb1 /src
parentc8a8f7dd4d91a9f7aa8b12367fa0f84e50829cc9 (diff)
downloadrspamd-9ac5c84396116cd34268cc1c1bb2cdcbdf00bc1c.tar.gz
rspamd-9ac5c84396116cd34268cc1c1bb2cdcbdf00bc1c.zip
[Minor] Fix format string issues
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamc.c2
-rw-r--r--src/libmime/lang_detection.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 9a54cb4ab..5b5253628 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -1224,7 +1224,7 @@ rspamc_output_headers (FILE *out, struct rspamd_http_message *msg)
struct rspamd_http_header *h, *htmp;
HASH_ITER (hh, msg->headers, h, htmp) {
- rspamd_fprintf (out, "%T: %T\n", h->name, h->value);
+ rspamd_fprintf (out, "%T: %T\n", &h->name, &h->value);
}
rspamd_fprintf (out, "\n");
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index 3dd0a8d63..ce292f185 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -121,8 +121,8 @@ rspamd_language_detector_read_file (struct rspamd_config *cfg,
while ((cur = ucl_object_iterate (freqs, &it, true)) != NULL) {
const gchar *key;
- gsize keylen, nsym;
- guint freq;
+ gsize keylen;
+ guint freq, nsym;
UChar *ucs_key;
key = ucl_object_keyl (cur, &keylen);