1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

nss_wins: Fix a type-punned warning

This commit is contained in:
Volker Lendecke 2011-01-01 15:08:42 +01:00
parent 3b4fd3573e
commit 407a1b3e74

View File

@ -125,7 +125,8 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
free(ret); free(ret);
return NULL; return NULL;
} }
*ret = ((struct sockaddr_in *)&address[0].ss)->sin_addr; *ret = ((struct sockaddr_in *)(void *)&address[0].ss)
->sin_addr;
free( address ); free( address );
return ret; return ret;
} }