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:
parent
3b4fd3573e
commit
407a1b3e74
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user