diff options
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/wins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nsswitch/wins.c b/nsswitch/wins.c index ac062fe3119..6e3c84b6087 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -125,7 +125,8 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count) free(ret); return NULL; } - *ret = ((struct sockaddr_in *)&address[0].ss)->sin_addr; + *ret = ((struct sockaddr_in *)(void *)&address[0].ss) + ->sin_addr; free( address ); return ret; } |