aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 23:59:43 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 23:59:46 +0200
commit3cc12817f686064fe18112cf05d8bd541abcd398 (patch)
treed0fb08abfecff027709494afc8a776de9ead11c6
parent68875ba600c635f985aa8deea7f940816a5e7645 (diff)
downloadmpd-3cc12817f686064fe18112cf05d8bd541abcd398.tar.gz
mpd-3cc12817f686064fe18112cf05d8bd541abcd398.tar.xz
mpd-3cc12817f686064fe18112cf05d8bd541abcd398.zip
conf: _get_next_param() returns a const pointer
No writers.
Diffstat (limited to '')
-rw-r--r--src/conf.c2
-rw-r--r--src/conf.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/conf.c b/src/conf.c
index 9e9c199fd..155e75207 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -463,7 +463,7 @@ config_read_file(const char *file, GError **error_r)
return true;
}
-struct config_param *
+const struct config_param *
config_get_next_param(const char *name, const struct config_param * last)
{
struct config_entry *entry;
diff --git a/src/conf.h b/src/conf.h
index 1c6e464c4..d91d464ce 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -133,11 +133,11 @@ config_read_file(const char *file, GError **error_r);
/* don't free the returned value
set _last_ to NULL to get first entry */
G_GNUC_PURE
-struct config_param *
+const struct config_param *
config_get_next_param(const char *name, const struct config_param *last);
G_GNUC_PURE
-static inline struct config_param *
+static inline const struct config_param *
config_get_param(const char *name)
{
return config_get_next_param(name, NULL);