udev-builtin-net_id: fix warning about discarded "const" attribute (#5385)

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-02-19 03:00:42 -05:00 committed by Evgeny Vereshchagin
parent 1e94df4471
commit 3877500c5b

View 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);