1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Peter Wienemann <wiene@debian.org>
Date: Sat, 21 Feb 2026 20:40:32 +0100
Subject: Make code ISO C23 compliant/build with glibc 2.43
Origin: upstream, https://gitlab.com/charliecloud/charliecloud/-/merge_requests/2014.diff
Bug: https://gitlab.com/charliecloud/charliecloud/-/issues/2094
Bug-Debian: https://bugs.debian.org/1128533
---
bin/json.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/json.c b/bin/json.c
index 6b20ad6..0c6d134 100644
--- a/bin/json.c
+++ b/bin/json.c
@@ -584,7 +584,7 @@ char *cdi_resid_canonicalize(const char *id)
resource kind. */
bool cdi_resid_path_p(const char *id)
{
- char *ext;
+ const char *ext;
T__ (id != NULL && id[0] != '\0');
ext = strrchr(id, '.');
|