From: Felix Fietkau Date: Mon, 21 Oct 2024 15:41:19 +0000 (+0200) Subject: fix signed/unsigned comparison warnings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6ab44a2413f9681da0b78d0c7b1077ba46255a8a;p=project%2Fnetifd.git fix signed/unsigned comparison warnings Signed-off-by: Felix Fietkau --- diff --git a/config.c b/config.c index d187152..b38f04f 100644 --- 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 f8662c2..e46b83d 100644 --- 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) ||