fix signed/unsigned comparison warnings
authorFelix Fietkau <nbd@nbd.name>
Mon, 21 Oct 2024 15:41:19 +0000 (17:41 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 21 Oct 2024 15:41:19 +0000 (17:41 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
config.c
ubus.c

index d187152b37ae9a3ac8d46a0d06890db6ae5f2bfb..b38f04fbddaa263353ff7c7e86857dd2aa3142a9 100644 (file)
--- a/config.c
+++ b/config.c
@@ -645,7 +645,7 @@ config_init_procd_wireless_interface(const char *wdev_name, const char *vif_name
        struct blob_attr *cur;
        char name[16];
        int idx = 0;
-       int rem;
+       size_t rem;
 
        wdev = vlist_find(&wireless_devices, wdev_name, wdev, node);
        if (!wdev) {
diff --git a/ubus.c b/ubus.c
index f8662c2a7b78be1f3a817affdd4a8e17124d5d9c..e46b83da50865a752a5a7070ef1befe4bae89315 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -1451,7 +1451,7 @@ netifd_ubus_data_cb(struct ubus_request *req, int type, struct blob_attr *msg)
 {
        struct blob_attr *srv, *in, *t, *data;
        procd_data_cb cb = req->priv;
-       int rem, rem2, rem3, rem4;
+       size_t rem, rem2, rem3, rem4;
 
        blobmsg_for_each_attr(srv, msg, rem) {
                if (!blobmsg_check_attr(srv, true) ||