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 /socket.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 'socket.c')
-rw-r--r-- | socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |