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

Marcel Holtmann <[email protected]> Fri, 13 Feb 2026 22:05:59 +0100
Newsgroups dev.linux.lists.connman
Message-ID <[email protected]>
Hi Rudi,

> 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(-)

all 5 patches have been applied.

Regards

Marcel