aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@src.gnome.org>2001-03-30 04:31:40 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2001-03-30 04:31:40 +0800
commitfe962a2055234adf407999f0557ae25441ca5c35 (patch)
treece9254cb08e91cf6528cde689139bd5e4e535ba7 /camel/camel-mime-utils.c
parent8a0c0a680252b389ad3b3a58090690925b9f99b1 (diff)
downloadgsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar
gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.gz
gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.bz2
gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.lz
gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.xz
gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.zst
gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.zip
Big header cleanups and nntp compile fix
svn path=/trunk/; revision=9024
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 2f92d5fb86..71600e44bf 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -21,10 +21,11 @@
/* dont touch this file without my permission - Michael */
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdio.h>
-
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h> /* for MAXHOSTNAMELEN */
@@ -40,14 +41,14 @@
#include <unicode.h>
#include <iconv.h>
-#include <glib.h>
#include <time.h>
#include <ctype.h>
#include <errno.h>
-
#include <regex.h>
+#include <glib.h>
+
#include "camel-mime-utils.h"
#include "camel-charset-map.h"
@@ -902,7 +903,7 @@ rfc2047_decode_word(const char *in, int len)
{
const char *inptr = in+2;
const char *inend = in+len-2;
- const char *inbuf;
+ char *inbuf;
char *encname;
int tmplen;
int ret;
@@ -1145,7 +1146,7 @@ rfc2047_encode_word(GString *outstring, const char *in, int len, const char *typ
iconv_t ic = (iconv_t *)-1;
char *buffer, *out, *ascii;
size_t inlen, outlen, enclen, bufflen;
- const char *inptr, *p;
+ char *inptr, *p;
int first = 1;
d(printf("Converting [%d] '%.*s' to %s\n", len, len, in, type));