Check-in Number:
|
4953 | |
Date: |
2005-Jan-13 09:50:11 (local)
2005-Jan-13 08:50:11 (UTC) |
User: | rse |
Branch: | |
Comment: |
use a double-cast to get rid of GCC warnings on 64-bit platforms about 'cast increases alignment restrictions' because although true it cannot be done differently here because of the way the old Unix socket API is designed |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/uuid/uuid_mac.c 1.5 -> 1.6
--- uuid_mac.c 2004/12/31 19:20:34 1.5
+++ uuid_mac.c 2005/01/13 08:50:11 1.6
@@ -105,7 +105,7 @@
return FALSE;
for (ifap = ifap_head; ifap != NULL; ifap = ifap->ifa_next) {
if (ifap->ifa_addr != NULL && ifap->ifa_addr->sa_family == AF_LINK) {
- sdl = (const struct sockaddr_dl *)ifap->ifa_addr;
+ sdl = (const struct sockaddr_dl *)(void *)ifap->ifa_addr;
ucp = (unsigned char *)(sdl->sdl_data + sdl->sdl_nlen);
if (ucp != NULL && sdl->sdl_alen > 0) {
for (i = 0; i < MAC_LEN && i < sdl->sdl_alen; i++, ucp++)
|
|