From 4f593161c21a3b393632b04108a01666677f0201 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Thu, 22 Jul 2021 16:14:29 +0200 Subject: [PATCH] lib/netinfo: fix a LGTM alert Fix the alert: Comparison is always false because ... = ... >= 0. detected by the LGTM static code analyzer. Signed-off-by: Davide Madrisan --- lib/netinfo-private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netinfo-private.c b/lib/netinfo-private.c index fcbad857..5f1d1dc7 100644 --- a/lib/netinfo-private.c +++ b/lib/netinfo-private.c @@ -346,7 +346,7 @@ get_netinfo_snapshot (unsigned int options, const regex_t *if_regex) while (!msg_done) { /* parse reply */ - unsigned int len; + ssize_t len; struct nlmsghdr *h; struct msghdr rtnl_reply; struct iovec io_reply;