Skip to contentSkip to conversation

connman: Fix issue with const return value from strrchr and memchr

PATCH Applied Rudi Heitbaum 3 participants 3 messages Feb 12 – Feb 13

lore
Share & tools
lore
#0 lore raw

cover connman: Fix issue with const return value from strrchr and memchr

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(-)
Signature · 1 line
2.51.0
#1 lore raw

Hi Rudi,

Quoted 13 lines

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

Quoted 6 lines
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

#2 lore raw
In reply to Rudi Heitbaum
This series was applied to connman.git (master) by Marcel Holtmann <[email protected]>:

Hello:

This series was applied to connman.git (master)
by Marcel Holtmann <[email protected]>:

Quoted 6 lines · On Thu, 12 Feb 2026 13:25:15 +0000 you wrote:

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.

Quoted 8 lines

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

[...]

Here is the summary with links:
- [1/5] vpn: Fix issue with const return value from strrchr

    https://git.kernel.org/pub/scm/network/connman/connman.git/?id=0762b1413f35
  - [2/5] vpn-provider: Fix issue with const return value from strrchr
    https://git.kernel.org/pub/scm/network/connman/connman.git/?id=67b1feb08163
  - [3/5] gweb: Fix issue with const return value from memchr
    https://git.kernel.org/pub/scm/network/connman/connman.git/?id=105276d27c4f
  - [4/5] dundee: Fix issue with const return value from strrchr
    https://git.kernel.org/pub/scm/network/connman/connman.git/?id=30f6841aa797
  - [5/5] ofono: Fix issue with const return value from strrchr
    https://git.kernel.org/pub/scm/network/connman/connman.git/?id=31733fbba5e5

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html