diff src/imap/imap-fetch-body.c @ 15079:925d4a890a9b

Fixed compiling with OSes where NULL isn't defined as void pointer (e.g. Solaris).
author Timo Sirainen <tss@iki.fi>
date Sun, 16 Sep 2012 16:08:18 +0300
parents 8e29272c35fa
children 5cdd5bf63c51
line wrap: on
line diff
--- a/src/imap/imap-fetch-body.c	Sun Sep 16 16:02:22 2012 +0300
+++ b/src/imap/imap-fetch-body.c	Sun Sep 16 16:08:18 2012 +0300
@@ -523,26 +523,28 @@
 		ctx->fetch_ctx->fetch_data |= MAIL_FETCH_STREAM_HEADER |
 			MAIL_FETCH_STREAM_BODY;
 		ctx->fetch_ctx->flags_update_seen = TRUE;
-		imap_fetch_add_handler(ctx, 0, "NIL", fetch_rfc822, NULL);
+		imap_fetch_add_handler(ctx, 0, "NIL",
+				       fetch_rfc822, (void *)NULL);
 		return TRUE;
 	}
 
 	if (strcmp(name+6, ".SIZE") == 0) {
 		ctx->fetch_ctx->fetch_data |= MAIL_FETCH_VIRTUAL_SIZE;
 		imap_fetch_add_handler(ctx, IMAP_FETCH_HANDLER_FLAG_BUFFERED,
-				       "0", fetch_rfc822_size, NULL);
+				       "0", fetch_rfc822_size, (void *)NULL);
 		return TRUE;
 	}
 	if (strcmp(name+6, ".HEADER") == 0) {
 		ctx->fetch_ctx->fetch_data |= MAIL_FETCH_STREAM_HEADER;
 		imap_fetch_add_handler(ctx, 0, "NIL",
-				       fetch_rfc822_header, NULL);
+				       fetch_rfc822_header, (void *)NULL);
 		return TRUE;
 	}
 	if (strcmp(name+6, ".TEXT") == 0) {
 		ctx->fetch_ctx->fetch_data |= MAIL_FETCH_STREAM_BODY;
 		ctx->fetch_ctx->flags_update_seen = TRUE;
-		imap_fetch_add_handler(ctx, 0, "NIL", fetch_rfc822_text, NULL);
+		imap_fetch_add_handler(ctx, 0, "NIL",
+				       fetch_rfc822_text, (void *)NULL);
 		return TRUE;
 	}