Skip to content

Commit eb3560a

Browse files
committed
nlbwmon: add pending PR to fix GCC16 builds
Add pending https://github.com/jow-/nlbwmon/pull/75 This is needed for: openwrt/openwrt#23194 Signed-off-by: John Audia <therealgraysky@proton.me>
1 parent 407e076 commit eb3560a

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

net/nlbwmon/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=nlbwmon
4-
PKG_RELEASE:=1
4+
PKG_RELEASE:=2
55

66
PKG_SOURCE_PROTO:=git
77
PKG_SOURCE_URL:=https://github.com/jow-/nlbwmon.git
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 7af6798a218737db7efc46dd4b9ae74b4c6a48f8 Mon Sep 17 00:00:00 2001
2+
From: John Audia <therealgraysky@proton.me>
3+
Date: Tue, 26 May 2026 09:22:30 -0400
4+
Subject: [PATCH] fix discarded-qualifiers warning with GCC 16
5+
6+
strchr() returns char * even when passed a const char *, a known
7+
C standard wart. Explicitly cast the return value to char * to
8+
satisfy -Werror=discarded-qualifiers
9+
10+
Signed-off-by: John Audia <therealgraysky@proton.me>
11+
---
12+
subnets.c | 2 +-
13+
1 file changed, 1 insertion(+), 1 deletion(-)
14+
15+
--- a/subnets.c
16+
+++ b/subnets.c
17+
@@ -36,7 +36,7 @@ parse_subnet(const char *addr, struct su
18+
unsigned long int n;
19+
uint8_t i, b;
20+
21+
- mask = strchr(addr, '/');
22+
+ mask = (char *)strchr(addr, '/');
23+
24+
if (mask)
25+
memcpy(tmp, addr, mask++ - addr);

0 commit comments

Comments
 (0)