aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-03-15 17:05:25 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-03-15 17:05:25 +0000
commitc3e52ea6ca3178b7ecab4b389a9ba9269662b48f (patch)
tree92010dbf827948300ec59549600f86eac09ca9b0 /transact.c
parent10ad1196e3f7f240a231e91d7cb2a612da3d6b4e (diff)
downloadfetchmail-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.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/transact.c b/transact.c
index d2a241c5..c0719615 100644
--- a/transact.c
+++ b/transact.c
@@ -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 */