aboutsummaryrefslogtreecommitdiffstats
path: root/unmime.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2009-01-14 01:56:15 +0000
committerMatthias Andree <matthias.andree@gmx.de>2009-01-14 01:56:15 +0000
commitaf7d73c7ab76ad81fed78b7f5c024daf1af87d9d (patch)
tree9edb72176a3491b5d10e48b9570aca071fdba731 /unmime.c
parenta804c2b676aa9629bea657e78d5e6803b85228cc (diff)
downloadfetchmail-af7d73c7ab76ad81fed78b7f5c024daf1af87d9d.tar.gz
fetchmail-af7d73c7ab76ad81fed78b7f5c024daf1af87d9d.tar.bz2
fetchmail-af7d73c7ab76ad81fed78b7f5c024daf1af87d9d.zip
Fix a few compiler warnings around implicit conversion or extra ";".
svn path=/branches/BRANCH_6-3/; revision=5261
Diffstat (limited to 'unmime.c')
-rw-r--r--unmime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unmime.c b/unmime.c
index a518da2c..1c0c8245 100644
--- a/unmime.c
+++ b/unmime.c
@@ -434,7 +434,7 @@ int MimeBodyType(char *hdrs, int WantDecode)
if (p == NULL) p = NxtHdr + strlen(NxtHdr);
xfree(CntType);
- CntType = xmalloc(p-NxtHdr+1);
+ CntType = (char *)xmalloc(p-NxtHdr+1);
strlcpy(CntType, NxtHdr, p-NxtHdr+1);
HdrsFound++;
}
@@ -707,7 +707,7 @@ int main(int argc, char *argv[])
buf_p++;
if ((unsigned)(buf_p - buffer) == BufSize) {
/* Buffer is full! Get more room. */
- buffer = xrealloc(buffer, BufSize+BUFSIZE_INCREMENT);
+ buffer = (char *)xrealloc(buffer, BufSize+BUFSIZE_INCREMENT);
buf_p = buffer + BufSize;
BufSize += BUFSIZE_INCREMENT;
}