From 97110c53cd3f87f43a34f640df78bc4ec2201916 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 1 Dec 2004 03:07:51 +0000 Subject: rename to STREAM_LINE_SIZE so it doesn't override the STREAM_LINE enum. 2004-11-30 Not Zed * providers/nntp/camel-nntp-stream.c (CAMEL_NNTP_STREAM_LINE): rename to STREAM_LINE_SIZE so it doesn't override the STREAM_LINE enum. Sigh. (camel_nntp_stream_init): fix for above change. svn path=/trunk/; revision=28021 --- camel/ChangeLog | 7 +++++++ camel/providers/nntp/camel-nntp-stream.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 837a3dcfe1..5eb5b00bbd 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2004-11-30 Not Zed + + * providers/nntp/camel-nntp-stream.c (CAMEL_NNTP_STREAM_LINE): + rename to STREAM_LINE_SIZE so it doesn't override the STREAM_LINE + enum. Sigh. + (camel_nntp_stream_init): fix for above change. + 2004-11-28 S.Çağlar Onur ** See bug #69446. diff --git a/camel/providers/nntp/camel-nntp-stream.c b/camel/providers/nntp/camel-nntp-stream.c index bc62c0a0c2..244b67acb1 100644 --- a/camel/providers/nntp/camel-nntp-stream.c +++ b/camel/providers/nntp/camel-nntp-stream.c @@ -42,7 +42,7 @@ static CamelObjectClass *parent_class = NULL; #define CS_CLASS(so) CAMEL_NNTP_STREAM_CLASS(CAMEL_OBJECT_GET_CLASS(so)) #define CAMEL_NNTP_STREAM_SIZE (4096) -#define CAMEL_NNTP_STREAM_LINE (1024) /* maximum line size */ +#define CAMEL_NNTP_STREAM_LINE_SIZE (1024) /* maximum line size */ static int stream_fill(CamelNNTPStream *is) @@ -200,8 +200,8 @@ camel_nntp_stream_init(CamelNNTPStream *is, CamelNNTPStreamClass *isclass) { /* +1 is room for appending a 0 if we need to for a line */ is->ptr = is->end = is->buf = g_malloc(CAMEL_NNTP_STREAM_SIZE+1); - is->lineptr = is->linebuf = g_malloc(CAMEL_NNTP_STREAM_LINE+1); - is->lineend = is->linebuf + CAMEL_NNTP_STREAM_LINE; + is->lineptr = is->linebuf = g_malloc(CAMEL_NNTP_STREAM_LINE_SIZE+1); + is->lineend = is->linebuf + CAMEL_NNTP_STREAM_LINE_SIZE; /* init sentinal */ is->ptr[0] = '\n'; -- cgit v1.2.3