From 6ab44a2413f9681da0b78d0c7b1077ba46255a8a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 21 Oct 2024 17:41:19 +0200 Subject: [PATCH] fix signed/unsigned comparison warnings Signed-off-by: Felix Fietkau --- config.c | 2 +- ubus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) || -- 2.30.2