vlan_hotplug_check(vldev, dep->dev);
vldev->dev.hidden = dep->dev->hidden;
if (snprintf(name, sizeof(name), "%s.%d", dep->dev->ifname,
- vldev->id) >= sizeof(name) - 1 ||
+ vldev->id) >= (int)sizeof(name) - 1 ||
device_set_ifname(&vldev->dev, name))
free_vlan_if(&vldev->dev);
break;
if (!create)
return NULL;
- if (snprintf(name, sizeof(name), "%s.%d", dev->ifname, id) >= sizeof(name) - 1)
+ if (snprintf(name, sizeof(name), "%s.%d", dev->ifname, id) >= (int)sizeof(name) - 1)
return NULL;
D(DEVICE, "Create vlan device '%s'\n", name);