From 407a1b3e7463f02d22670ab033c1a2df89c0ce06 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 1 Jan 2011 15:08:42 +0100 Subject: [PATCH] nss_wins: Fix a type-punned warning --- nsswitch/wins.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.11.4.GIT