diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-11 10:57:11 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-11 10:57:11 +0800 |
commit | 40eea3692e4afa02a9092f64c00e9348f562f68b (patch) | |
tree | a5de1982e43949eefeea75ab5a939a89690b32d4 /camel/camel-mime-utils.c | |
parent | e8ee5b65d43775708361a1094d56ae7d20fbb5e7 (diff) | |
download | gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.gz gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.bz2 gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.lz gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.xz gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.zst gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.zip |
Fixed some warnings.
2000-08-10 Christopher James Lahey <clahey@helixcode.com>
* camel-folder-search.c, camel-folder-summary.c, camel-medium.c,
camel-mime-filter-charset.c, camel-mime-filter.c,
camel-mime-filter.h, camel-mime-message.c, camel-mime-parser.c,
camel-mime-part-utils.c, camel-mime-part.c, camel-mime-utils.c,
camel-movemail.c, camel-multipart.c, camel-object.c,
camel-stream-mem.c, providers/mbox/camel-mbox-folder.c,
providers/mbox/camel-mbox-summary.c,
providers/mh/camel-mh-folder.c,
providers/smtp/camel-smtp-transport.c: Fixed some warnings.
svn path=/trunk/; revision=4719
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index edfda90ed8..3e85f4127f 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -541,7 +541,7 @@ int quoted_encode_step(unsigned char *in, int len, unsigned char *out, int *statep, int *save) { register unsigned char *inptr, *outptr, *inend; - unsigned char c=0x100; + unsigned char c; register int sofar = *save, /* keeps track of how many chars on a line */ last=*statep; /* keeps track if last char to end was a space cr etc */ @@ -794,7 +794,7 @@ header_decode_lwsp(const char **in) d2(printf("is ws: '%s'\n", *in)); - while (is_lwsp(*inptr) || *inptr =='(' && *inptr != '\0') { + while (is_lwsp(*inptr) || (*inptr =='(' && *inptr != '\0')) { while (is_lwsp(*inptr) && inptr != '\0') { d2(printf("(%c)", *inptr)); inptr++; @@ -1804,7 +1804,9 @@ header_address_decode(const char *in) d(printf("decoding To: '%s'\n", in)); +#ifndef NO_WARNINGS #warning header_to_decode needs to return some structure +#endif if (in == NULL) return NULL; @@ -2562,7 +2564,9 @@ header_address_list_format_append(GString *out, struct _header_address *a) while (a) { switch (a->type) { case HEADER_ADDRESS_NAME: +#ifndef NO_WARNINGS #warning needs to rfc2047 encode address phrase +#endif /* FIXME: 2047 encoding?? */ if (a->name && *a->name) g_string_sprintfa(out, "\"%s\" <%s>", a->name, a->v.addr); |