wutsocket: avoid aliasing issues

This commit is contained in:
GaryOderNichts 2021-03-07 15:44:55 +01:00 committed by fincs
parent 174b0c0a86
commit d0dc9869e5

View File

@ -5,9 +5,9 @@
long
gethostid(void)
{
long ip = -1;
ACGetAssignedAddress((uint32_t*) &ip);
return ip;
uint32_t ip = UINT32_MAX;
ACGetAssignedAddress(&ip);
return (long)ip;
}
int