(LINE_PARSER): Cast host_addr to char * to avoid warning.
authordrepper <drepper>
Sat, 28 Jul 2007 20:32:53 +0000 (20:32 +0000)
committerdrepper <drepper>
Sat, 28 Jul 2007 20:32:53 +0000 (20:32 +0000)
nss/nss_files/files-hosts.c

index 7b7aade..b064672 100644 (file)
@@ -86,7 +86,7 @@ LINE_PARSER
    result->h_length = af == AF_INET ? INADDRSZ : IN6ADDRSZ;
 
    /* Store a pointer to the address in the expected form.  */
-   entdata->h_addr_ptrs[0] = entdata->host_addr;
+   entdata->h_addr_ptrs[0] = (char *) entdata->host_addr;
    entdata->h_addr_ptrs[1] = NULL;
    result->h_addr_list = entdata->h_addr_ptrs;