diff options
| -rw-r--r-- | include/uconfig.h | 2 | ||||
| -rw-r--r-- | 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) { |
