treewide: fix multiple compiler warnings
[project/netifd.git] / system-linux.c
index e4041fbd8060f4c6487ddb8297cc83fdf019cfd9..432581eeb8e4e3fdc97a082af218b18cad4c8cb1 100644 (file)
@@ -1036,7 +1036,7 @@ int system_bonding_set_device(struct device *dev, struct bonding_config *cfg)
        struct blob_attr *cur;
        char op = cfg ? '+' : '-';
        char buf[64];
-       int rem;
+       size_t rem;
 
        snprintf(dev_buf, sizeof(dev_buf), "%s/class/net/bonding_masters", sysfs_path);
        snprintf(buf, sizeof(buf), "%c%s", op, ifname);