williamh    14/03/09 19:37:27

  Added:                dhcpcd-6.3.1-fix-udev.patch
  Log:
  rev bump for #503738
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
0x8568F528)

Revision  Changes    Path
1.1                  net-misc/dhcpcd/files/dhcpcd-6.3.1-fix-udev.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/files/dhcpcd-6.3.1-fix-udev.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/files/dhcpcd-6.3.1-fix-udev.patch?rev=1.1&content-type=text/plain

Index: dhcpcd-6.3.1-fix-udev.patch
===================================================================
Index: dev/udev.c
==================================================================
--- dev/udev.c
+++ dev/udev.c
@@ -42,11 +42,11 @@
 
 static const char udev_name[]="udev";
 static struct udev *udev;
 static struct udev_monitor *monitor;
 
-static const struct dev_dhcpcd *dhcpcd;
+static struct dev_dhcpcd dhcpcd;
 
 static int
 udev_listening(void)
 {
 
@@ -90,13 +90,13 @@
 
        /* udev filter documentation says "usually" so double check */
        if (strcmp(subsystem, "net") == 0) {
                syslog(LOG_DEBUG, "%s: libudev: %s", ifname, action);
                if (strcmp(action, "add") == 0 || strcmp(action, "move") == 0)
-                       dhcpcd->handle_interface(ctx, 1, ifname);
+                       dhcpcd.handle_interface(ctx, 1, ifname);
                else if (strcmp(action, "remove") == 0)
-                       dhcpcd->handle_interface(ctx, -1, ifname);
+                       dhcpcd.handle_interface(ctx, -1, ifname);
        }
 
        udev_device_unref(device);
        return 1;
 }
@@ -171,9 +171,9 @@
        dev->listening = udev_listening;
        dev->handle_device = udev_handle_device;
        dev->stop = udev_stop;
        dev->start = udev_start;
 
-       dhcpcd =  dev_dhcpcd;
+       dhcpcd = *dev_dhcpcd;
 
        return 0;
 }





Reply via email to