hal/hald/linux net_class_device.c,1.14,1.15
Joe Shaw
joe at freedesktop.org
Fri Jul 30 13:59:47 PDT 2004
Update of /cvs/hal/hal/hald/linux
In directory pdx:/tmp/cvs-serv5593/hald/linux
Modified Files:
net_class_device.c
Log Message:
2004-07-30 Joe Shaw <joeshaw at novell.com>
Patch from Dan Williams <dcbw at redhat.com>
* hald/linux/net_class_device.c (link_detection_handle_message):
Fix a point arithmetic bug which caused link status changes to be
missed. Also fixes a compiler warning.
Index: net_class_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/net_class_device.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- net_class_device.c 5 Jul 2004 18:54:58 -0000 1.14
+++ net_class_device.c 30 Jul 2004 20:59:45 -0000 1.15
@@ -318,7 +318,7 @@
memset (&ifname, 0, sizeof (ifname));
- attr = (void *) (ifinfo + NLMSG_ALIGN (sizeof (struct ifinfomsg)));
+ attr = (struct rtattr *) ((unsigned char *)ifinfo + NLMSG_ALIGN (sizeof (struct ifinfomsg)));
attr_len = NLMSG_PAYLOAD (hdr, sizeof (struct ifinfomsg));
while (RTA_OK (attr, attr_len)) {
More information about the hal-commit
mailing list