diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-03-15 17:05:25 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-03-15 17:05:25 +0000 |
commit | c3e52ea6ca3178b7ecab4b389a9ba9269662b48f (patch) | |
tree | 92010dbf827948300ec59549600f86eac09ca9b0 /transact.c | |
parent | 10ad1196e3f7f240a231e91d7cb2a612da3d6b4e (diff) | |
download | fetchmail-c3e52ea6ca3178b7ecab4b389a9ba9269662b48f.tar.gz fetchmail-c3e52ea6ca3178b7ecab4b389a9ba9269662b48f.tar.bz2 fetchmail-c3e52ea6ca3178b7ecab4b389a9ba9269662b48f.zip |
Further cleanups to compile with C++ compiler.
svn path=/branches/BRANCH_6-3/; revision=4744
Diffstat (limited to 'transact.c')
-rw-r--r-- | transact.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -869,7 +869,7 @@ int readheaders(int sock, || !strncasecmp("Bcc:", line, 4) || !strncasecmp("Apparently-To:", line, 14)) { - *to_chainptr = xmalloc(sizeof(struct addrblk)); + *to_chainptr = (struct addrblk *)xmalloc(sizeof(struct addrblk)); (*to_chainptr)->offset = (line - msgblk.headers); to_chainptr = &(*to_chainptr)->next; *to_chainptr = NULL; @@ -879,7 +879,7 @@ int readheaders(int sock, || !strncasecmp("Resent-Cc:", line, 10) || !strncasecmp("Resent-Bcc:", line, 11)) { - *resent_to_chainptr = xmalloc(sizeof(struct addrblk)); + *resent_to_chainptr = (struct addrblk *)xmalloc(sizeof(struct addrblk)); (*resent_to_chainptr)->offset = (line - msgblk.headers); resent_to_chainptr = &(*resent_to_chainptr)->next; *resent_to_chainptr = NULL; @@ -1476,11 +1476,10 @@ va_dcl } } -int gen_recv(sock, buf, size) -/* get one line of input from the server */ -int sock; /* socket to which server is connected */ -char *buf; /* buffer to receive input */ -int size; /* length of buffer */ +/** get one line of input from the server */ +int gen_recv(int sock /** socket to which server is connected */, + char *buf /* buffer to receive input */, + int size /* length of buffer */) { int oldphase = phase; /* we don't have to be re-entrant */ |