[evolution-data-server] Bug #691126 - Fix warnings found by Clang (POP3 part)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #691126 - Fix warnings found by Clang (POP3 part)
- Date: Fri, 18 Jan 2013 11:21:37 +0000 (UTC)
commit 753949ff886dcff52ee584f79e593046b564a662
Author: Milan Crha <mcrha redhat com>
Date: Fri Jan 18 12:18:11 2013 +0100
Bug #691126 - Fix warnings found by Clang (POP3 part)
The change itself fixed a symbol clash on CAMEL_POP3_STREAM_LINE,
where one was an enum value, and the other a line size integer.
It may or may not change behaviour of the POP3 provider.
This is committed separately, and only to master branch, to give
the change more time for testing.
camel/providers/pop3/camel-pop3-stream.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/camel/providers/pop3/camel-pop3-stream.c b/camel/providers/pop3/camel-pop3-stream.c
index 7a54461..f8ab50d 100644
--- a/camel/providers/pop3/camel-pop3-stream.c
+++ b/camel/providers/pop3/camel-pop3-stream.c
@@ -34,7 +34,7 @@
#define dd(x) (camel_debug ("pop3")?(x):0)
#define CAMEL_POP3_STREAM_SIZE (4096)
-#define CAMEL_POP3_STREAM_LINE (1024) /* maximum line size */
+#define CAMEL_POP3_STREAM_LINE_SIZE (1024) /* maximum line size */
G_DEFINE_TYPE (CamelPOP3Stream, camel_pop3_stream, CAMEL_TYPE_STREAM)
@@ -235,8 +235,8 @@ camel_pop3_stream_init (CamelPOP3Stream *is)
{
/* +1 is room for appending a 0 if we need to for a line */
is->ptr = is->end = is->buf = g_malloc (CAMEL_POP3_STREAM_SIZE + 1);
- is->lineptr = is->linebuf = g_malloc (CAMEL_POP3_STREAM_LINE + 1);
- is->lineend = is->linebuf + CAMEL_POP3_STREAM_LINE;
+ is->lineptr = is->linebuf = g_malloc (CAMEL_POP3_STREAM_LINE_SIZE + 1);
+ is->lineend = is->linebuf + CAMEL_POP3_STREAM_LINE_SIZE;
/* init sentinal */
is->ptr[0] = '\n';
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]