diff --git a/libraries/wutsocket/hostid.c b/libraries/wutsocket/hostid.c index 9a1c3bc..1dd16ec 100644 --- a/libraries/wutsocket/hostid.c +++ b/libraries/wutsocket/hostid.c @@ -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