diff options
Diffstat (limited to 'libesmtp/gethostbyname.c')
-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; |