aboutsummaryrefslogtreecommitdiffstats
path: root/transact.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 /transact.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 'transact.c')
-rw-r--r--transact.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/transact.c b/transact.c
index 88a5aacf..7f3d8dc2 100644
--- a/transact.c
+++ b/transact.c
@@ -446,7 +446,7 @@ int readheaders(int sock,
{
char *line, *rline;
- line = xmalloc(sizeof(buf));
+ line = (char *)xmalloc(sizeof(buf));
linelen = 0;
line[0] = '\0';
do {
@@ -807,7 +807,7 @@ int readheaders(int sock,
if (!msgblk.headers)
{
oldlen = linelen;
- msgblk.headers = xmalloc(oldlen + 1);
+ msgblk.headers = (char *)xmalloc(oldlen + 1);
(void) memcpy(msgblk.headers, line, linelen);
msgblk.headers[oldlen] = '\0';
free(line);
@@ -1300,7 +1300,7 @@ int readheaders(int sock,
if (idp->val.status.mark == XMIT_RCPTBAD)
errlen += strlen(idp->id) + 2;
- errmsg = xmalloc(errlen + 3);
+ errmsg = (char *)xmalloc(errlen + 3);
strcpy(errmsg, errhd);
for (idp = msgblk.recipients; idp; idp = idp->next)
if (idp->val.status.mark == XMIT_RCPTBAD)