aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-05-03 15:41:34 +0200
committerTristan Riehs <tristan.riehs@inria.fr>2026-05-03 15:41:34 +0200
commit3f4aaa323686e48cf52ba6771f24f6f3ca01b92c (patch)
tree90d484b0cd0f7e4db5e11a4261361a2ad0e8cfda
parent46cbb3b4393d690ff023d4339ac3268fba6774d5 (diff)
uconfig_get no longer return a constant string
-rw-r--r--include/uconfig.h2
-rw-r--r--src/uconfig.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/uconfig.h b/include/uconfig.h
index 415bc31..51582e9 100644
--- a/include/uconfig.h
+++ b/include/uconfig.h
@@ -14,7 +14,7 @@ struct uconfig_s;
struct uconfig_s *uconfig_new(const char *file);
/* Get the value associated to KEY, or NULL if none is found. */
-const char *uconfig_get(const struct uconfig_s *uconfig, const char *key);
+char *uconfig_get(const struct uconfig_s *uconfig, const char *key);
/* Destroy the given Uconfig handle. */
void uconfig_destroy(struct uconfig_s *uconfig);
diff --git a/src/uconfig.c b/src/uconfig.c
index ec06bd0..32a74de 100644
--- a/src/uconfig.c
+++ b/src/uconfig.c
@@ -135,7 +135,7 @@ err:
return NULL;
}
-const char *uconfig_get(const struct uconfig_s *uconfig, const char *key)
+char *uconfig_get(const struct uconfig_s *uconfig, const char *key)
{
struct uconfig_pair_s *pair = uconfig->head;
while (pair) {