]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-builtin-net_id: fix warning about discarded "const" attribute (#5385)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 19 Feb 2017 08:00:42 +0000 (03:00 -0500)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sun, 19 Feb 2017 08:00:42 +0000 (11:00 +0300)
src/udev/udev-builtin-net_id.c

index b5a88c667cc49b9bbc88e075e697b31387c1a5a5..bd7b789cad921fabab9a5280d2f2b26270952e22 100644 (file)
@@ -426,11 +426,10 @@ static int names_bcma(struct udev_device *dev, struct netnames *names) {
 
 static int names_ccw(struct  udev_device *dev, struct netnames *names) {
         struct udev_device *cdev;
-        const char *bus_id;
+        const char *bus_id, *subsys;
         size_t bus_id_len;
         size_t bus_id_start;
         int rc;
-        char *subsys;
 
         assert(dev);
         assert(names);