From af7d73c7ab76ad81fed78b7f5c024daf1af87d9d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 14 Jan 2009 01:56:15 +0000 Subject: Fix a few compiler warnings around implicit conversion or extra ";". svn path=/branches/BRANCH_6-3/; revision=5261 --- transact.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'transact.c') 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) -- cgit v1.2.3