[dovecot-cvs] dovecot/src/lib-storage/index index-fetch-section.c,1.28,1.29
cras at procontrol.fi
cras at procontrol.fi
Sat Jan 4 19:34:04 EET 2003
Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv133/lib-storage/index
Modified Files:
index-fetch-section.c
Log Message:
Misc. compiler warning fixes.
Index: index-fetch-section.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-fetch-section.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- index-fetch-section.c 4 Jan 2003 17:26:30 -0000 1.28
+++ index-fetch-section.c 4 Jan 2003 17:34:02 -0000 1.29
@@ -28,6 +28,8 @@
double-parsing. */
#define MAX_HEADER_BUFFER_SIZE (32*1024)
+#define UNSIGNED_CRLF (const unsigned char *) "\r\n"
+
ImapCacheField index_fetch_body_get_cache(const char *section)
{
if (*section >= '0' && *section <= '9')
@@ -207,7 +209,7 @@
if (!fetch_header_append(ctx, field_start,
(size_t) (p-field_start)))
return;
- if (!fetch_header_append(ctx, "\r\n", 2))
+ if (!fetch_header_append(ctx, UNSIGNED_CRLF, 2))
return;
field_start = p+1;
@@ -220,7 +222,7 @@
return;
}
- (void)fetch_header_append(ctx, "\r\n", 2);
+ (void)fetch_header_append(ctx, UNSIGNED_CRLF, 2);
}
static int fetch_header_fields(IStream *input, const char *section,
@@ -247,7 +249,7 @@
shouldn't add it if it wasn't there in the first place. Not very
easy to know currently so we'll just do it always, it'll be present
in all sane messages anyway.. */
- (void)fetch_header_append(ctx, "\r\n", 2);
+ (void)fetch_header_append(ctx, UNSIGNED_CRLF, 2);
i_assert(ctx->dest_size <= ctx->max_size);
i_assert(ctx->dest == NULL || str_len(ctx->dest) == ctx->dest_size);
More information about the dovecot-cvs
mailing list