diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-03-18 10:10:32 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-03-18 10:10:32 +0100 |
commit | 05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 (patch) | |
tree | 898185b02c06b47450c88fc8731cf508c056568d /unmime.c | |
parent | e9c99cb0a353ed18bd7c6ea6e93ec2fea326bbb4 (diff) | |
download | fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.gz fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.bz2 fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.zip |
Fix lots of warnings, most around string literals...
...that were converted to char* when they should have been converted to
const char *.
Use braces for empty if/else statements.
Diffstat (limited to 'unmime.c')
-rw-r--r-- | unmime.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -337,7 +337,7 @@ static int CheckContentType(char *CntType) * be really careful if you change this. */ - static char *DecodedTypes[] = { + static const char *DecodedTypes[] = { "text/", /* Will match ALL content-type's starting with 'text/' */ "message/rfc822", NULL @@ -651,7 +651,7 @@ int UnMimeBodyline(char **bufp, flag delimited, flag softline) #include <stdio.h> #include <unistd.h> -char *program_name = "unmime"; +const char *program_name = "unmime"; int outlevel = 0; #define BUFSIZE_INCREMENT 4096 |