aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-24 17:58:42 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-24 17:58:42 +0300
commit248ffb29f578ca774705125eb25eb98e075f1c7f (patch)
treef45aabef166259e31287bc2d8f0ef1d299fd429e /src
parent93597a0e188332c150ff7429cb344fafb92f38a7 (diff)
downloadrspamd-248ffb29f578ca774705125eb25eb98e075f1c7f.tar.gz
rspamd-248ffb29f578ca774705125eb25eb98e075f1c7f.zip
Fix warnings.
Diffstat (limited to 'src')
-rw-r--r--src/greylist_storage.c2
-rw-r--r--src/message.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/greylist_storage.c b/src/greylist_storage.c
index 293cc1f7f..94ef751ae 100644
--- a/src/greylist_storage.c
+++ b/src/greylist_storage.c
@@ -150,6 +150,7 @@ greylist_process_add_command (struct rspamd_grey_command *cmd, struct greylist_c
#else
g_tree_insert (ctx->tree, item->data, item);
reply.reply = GREY_OK;
+ (void)pitem;
#endif
return reply.reply;
@@ -203,6 +204,7 @@ greylist_process_check_command (struct rspamd_grey_command *cmd, struct greylist
}
#else
item = g_tree_lookup (ctx->tree, cmd->data);
+ (void)pitem;
#endif
if (item) {
if (now - item->age > ctx->expire_time) {
diff --git a/src/message.c b/src/message.c
index 28880b8da..2077dbcf8 100644
--- a/src/message.c
+++ b/src/message.c
@@ -1137,7 +1137,7 @@ header_iterate (memory_pool_t * pool, struct gmime_raw_header *h, GList ** ret,
}
}
}
- h = h->next;
+ h = (struct gmime_raw_header *)h->next;
}
}
#else
@@ -1217,7 +1217,7 @@ multipart_iterate (GMimeObject * part, gpointer user_data)
ls = g_mime_object_get_header_list (GMIME_OBJECT (part));
header_iterate (data->pool, ls, &l, data->field, data->strong);
#else
- h = part->headers->headers;
+ h = (struct gmime_raw_header *)part->headers->headers;
header_iterate (data->pool, h, &l, data->field, data->strong);
#endif
if (l == NULL) {
@@ -1257,7 +1257,7 @@ local_message_get_header (memory_pool_t * pool, GMimeMessage * message, const gc
cb.strong = strong;
#ifndef GMIME24
- struct raw_header *h;
+ struct gmime_raw_header *h;
if (field == NULL) {
return NULL;