+Fri Feb 20 09:56:35 IST 2007 Mark McLoughlin <markmc@redhat.com>
+
+ * qemud/bridge.c: change the fix for the alignment warning
+ a little.
+
Fri Feb 20 09:03:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/qemud.c: clean up qemudInitialize() and qemudListen()
else if (ret == 0)
return EINVAL;
- ((struct sockaddr_in *)((void *)&ifr.ifr_addr))->sin_family = AF_INET;
- ((struct sockaddr_in *)((void *)&ifr.ifr_addr))->sin_addr = inaddr;
+ ((struct sockaddr_in *)&ifr.ifr_data)->sin_family = AF_INET;
+ ((struct sockaddr_in *)&ifr.ifr_data)->sin_addr = inaddr;
if (ioctl(ctl->fd, cmd, &ifr) < 0)
return errno;
if (maxlen < BR_INET_ADDR_MAXLEN || ifr.ifr_addr.sa_family != AF_INET)
return EFAULT;
- inaddr = &((struct sockaddr_in *)((void *)&ifr.ifr_addr))->sin_addr;
+ inaddr = &((struct sockaddr_in *)&ifr.ifr_data)->sin_addr;
if (!inet_ntop(AF_INET, inaddr, addr, maxlen))
return errno;