summaryrefslogtreecommitdiff
path: root/bonding.c
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2023-03-29 09:45:04 +0200
committerPetr Štetiar <ynezz@true.cz>2023-03-29 09:54:51 +0200
commit3fe07401f60fbd2f2d14ea631a4142b38d9edfa0 (patch)
tree1835d720661b057d2d34c940faa9bd422dc3a2e9 /bonding.c
parent463a1207f0766417866e2c28316e58a96f84370b (diff)
downloadnetifd-3fe07401f60fbd2f2d14ea631a4142b38d9edfa0.tar.gz
treewide: fix multiple compiler warnings
Fixes bunch of clang-15/gcc-10 compiler warnings, mostly related to blobmsg_for_each_attr() usage: error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare] error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare] error: format string is not a string literal [-Werror,-Wformat-nonliteral] Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'bonding.c')
-rw-r--r--bonding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bonding.c b/bonding.c
index f4005de..402c71c 100644
--- a/bonding.c
+++ b/bonding.c
@@ -353,7 +353,7 @@ bonding_config_init(struct device *dev)
{
struct bonding_device *bdev;
struct blob_attr *cur;
- int rem;
+ size_t rem;
bdev = container_of(dev, struct bonding_device, dev);