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;