[LEDE-DEV] [PATCH] dhcpv6: Fix strncpy bounds and initialize struct to 0

2018-04-21 Thread Khem Raj
Fixes dhcpv6.c:141:2: error: 'strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation] strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); Signed-off-by

Re: [LEDE-DEV] [PATCH relayd] rtnl_flush: Error on failed write()

2017-06-17 Thread Khem Raj
On Sat, Jun 17, 2017 at 1:29 PM, Florian Fainelli wrote: > Le 06/17/17 à 09:38, Khem Raj a écrit : >> Fixes >> route.c:45:2: error: ignoring return value of 'write', declared with >> attribute warn_unused_result [-Werror=unused-r

[LEDE-DEV] [PATCH] rtnl_flush: Error on failed write()

2017-06-17 Thread Khem Raj
Fixes route.c:45:2: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result] | write(fd, "-1", 2); | ^~~~~~ Signed-off-by: Khem Raj --- route.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[LEDE-DEV] [netifd][PATCH] Remove redundant check for strtoul() return value

2017-05-18 Thread Khem Raj
Fixes system-linux.c:1998:33: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] Signed-off-by: Khem Raj --- system-linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system-linux.c b/system-linux.c index 3e11bdf..ddc3