aboutsummaryrefslogtreecommitdiffstats
path: root/socket.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 /socket.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 'socket.c')
-rw-r--r--socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/socket.c b/socket.c
index b1119ca5..10cd5d99 100644
--- a/socket.c
+++ b/socket.c
@@ -108,7 +108,7 @@ static char *const *parse_plugin(const char *plugin, const char *host, const cha
}
plugin_copy_len = plugin_len + host_len * host_count + service_len * service_count;
- plugin_copy = malloc(plugin_copy_len + 1);
+ plugin_copy = (char *)malloc(plugin_copy_len + 1);
if (!plugin_copy)
{
report(stderr, GT_("fetchmail: malloc failed\n"));
@@ -134,7 +134,7 @@ static char *const *parse_plugin(const char *plugin, const char *host, const cha
}
plugin_copy[plugin_copy_len] = 0;
- argvec = malloc(s);
+ argvec = (const char **)malloc(s);
if (!argvec)
{
report(stderr, GT_("fetchmail: malloc failed\n"));
@@ -470,7 +470,7 @@ int SockRead(int sock, char *buf, int len)
#ifdef FORCE_STUFFING
maxavailable = n;
#endif
- if ((newline = memchr(bp, '\n', n)) != NULL)
+ if ((newline = (char *)memchr(bp, '\n', n)) != NULL)
n = newline - bp + 1;
#ifndef __BEOS__
if ((n = fm_read(sock, bp, n)) == -1)