[LTP] [PATCH 1/1] lib/tst_net_vars.c: Fix warning for older toolchains

Petr Vorel pvorel@suse.cz
Fri Sep 8 14:47:14 CEST 2017


tst_net_iface_prefix.c:80: warning: comparison between signed and unsigned

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/lib/tst_net_iface_prefix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/lib/tst_net_iface_prefix.c b/testcases/lib/tst_net_iface_prefix.c
index 803f1e717..3868d36b5 100644
--- a/testcases/lib/tst_net_iface_prefix.c
+++ b/testcases/lib/tst_net_iface_prefix.c
@@ -57,7 +57,7 @@ static int read_iface_prefix(const char *ip_str, int is_ipv6)
 	uint8_t family = is_ipv6 ? AF_INET6 : AF_INET;
 
 	char buf[16384];
-	int len;
+	unsigned int len;
 
 	struct {
 		struct nlmsghdr nlhdr;
-- 
2.14.1



More information about the ltp mailing list