From b14723305f05b07b6bc81bf0bfbca25e214fbc5c Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 2 Feb 2014 11:27:24 +0100 Subject: [PATCH] libc: Silence another -Wtype-limits (socklen_t is unsigned). --- lib/libc/net/ip6opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/net/ip6opt.c b/lib/libc/net/ip6opt.c index 47f7eab66b..2709286e0c 100644 --- a/lib/libc/net/ip6opt.c +++ b/lib/libc/net/ip6opt.c @@ -406,7 +406,7 @@ inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type, * The option data length must have a value between 0 and 255, * inclusive, and is the length of the option data that follows. */ - if (len < 0 || len > 255) + if (len > 255) return(-1); /* -- 2.41.0