netifd: Fix multiple -Wsign-compare warnings
[project/netifd.git] / bonding.c
index 457fe515989910e84c670a79fa22de05b75f2433..f4005de059b4d3532a90bed841b47a906f24758d 100644 (file)
--- a/bonding.c
+++ b/bonding.c
@@ -396,7 +396,7 @@ bonding_apply_settings(struct bonding_device *bdev, struct blob_attr **tb)
 
        if ((cur = tb[BOND_ATTR_POLICY]) != NULL) {
                const char *policy = blobmsg_get_string(cur);
-               int i;
+               size_t i;
 
                for (i = 0; i < ARRAY_SIZE(bonding_policy_str); i++) {
                        if (strcmp(policy, bonding_policy_str[i]) != 0)