From 3f4aaa323686e48cf52ba6771f24f6f3ca01b92c Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 3 May 2026 15:41:34 +0200 Subject: uconfig_get no longer return a constant string --- include/uconfig.h | 2 +- src/uconfig.c | 2 +- 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) { -- cgit v1.2.3