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 /libesmtp | |
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 'libesmtp')
-rw-r--r-- | libesmtp/gethostbyname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libesmtp/gethostbyname.c b/libesmtp/gethostbyname.c index d151606d..2e3beefc 100644 --- a/libesmtp/gethostbyname.c +++ b/libesmtp/gethostbyname.c @@ -85,7 +85,7 @@ gethostbyname_ctx (const char *host, struct ghbnctx *ctx) memset (ctx, 0, sizeof (struct ghbnctx)); ctx->hostbuf_len = 2048; - if ((ctx->hostbuf = malloc (ctx->hostbuf_len)) == NULL) + if ((ctx->hostbuf = (char *)malloc (ctx->hostbuf_len)) == NULL) { errno = ENOMEM; return NULL; @@ -95,7 +95,7 @@ gethostbyname_ctx (const char *host, struct ghbnctx *ctx) &hp, &ctx->h_err)) == ERANGE) { ctx->hostbuf_len += 1024; - if ((tmp = realloc (ctx->hostbuf, ctx->hostbuf_len)) == NULL) + if ((tmp = (char *)realloc (ctx->hostbuf, ctx->hostbuf_len)) == NULL) { errno = ENOMEM; return NULL; |