[PATCH 0/5] connman: Fix issue with const return value from strrchr and memchr

Rudi Heitbaum <[email protected]> Thu, 12 Feb 2026 13:25:15 +0000
Newsgroups dev.linux.lists.connman
Message-ID <aY3Uu_Zd2b3v26ON@01676446e9f4>
When compiling with recent gcc and glibc-2.43 the --Wdiscarded-qualifiers
warning occurs because with ISO C23, the functions strrrchr qnd memchr
return pointers into their input arrays now have definitions as macros
that return a pointer to a const-qualified type when the input argument
is a pointer to a const-qualified type.

Rudi Heitbaum (5):
  vpn: Fix issue with const return value from strrchr
  vpn-provider: Fix issue with const return value from strrchr
  gweb: Fix issue with const return value from memchr
  dundee: Fix issue with const return value from strrchr
  ofono: Fix issue with const return value from strrchr

 gweb/gweb.c        | 4 ++--
 plugins/dundee.c   | 4 ++--
 plugins/ofono.c    | 4 ++--
 plugins/vpn.c      | 8 ++++----
 vpn/vpn-provider.c | 6 +++---
 5 files changed, 13 insertions(+), 13 deletions(-)

-- 
2.51.0