]> Pileus Git - ~andy/fetchmail/blobdiff - libesmtp/gethostbyname.c
Update German translation.
[~andy/fetchmail] / libesmtp / gethostbyname.c
index d151606d722f1c9e47e1477e19f72f6e80f74b83..cd74ec0aaf489273c90d12ced63c40aa9de6134e 100644 (file)
@@ -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;
@@ -201,7 +201,7 @@ h_error_ctx (struct ghbnctx *ctx)
 #else
 
 void
-free_ghbnctx (struct ghbnctx *ctx __attribute__ ((unused)))
+free_ghbnctx (struct ghbnctx *ctx )
 {
   assert (ctx != NULL);
 }