diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
commit | 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (patch) | |
tree | 611b143eb0834c892246f8b31311e9224977c952 /src/conf.c | |
parent | 1f0ff952055c920c8671a1587c622e4df8b4a99d (diff) | |
download | mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.gz mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.xz mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.zip |
const pointers
Convert pointers to const whenever it is possible. Fixes all those
-Wconst warnings.
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf.c b/src/conf.c index dda13f56b..0e477db88 100644 --- a/src/conf.c +++ b/src/conf.c @@ -218,8 +218,8 @@ parse_key_definition(char *str) return assign_keys(cmd, keys); } -static char * -parse_timedisplay_type(char *str) +static const char * +parse_timedisplay_type(const char *str) { if((!strcmp(str,"elapsed")) || (!strcmp(str,"remaining"))){ return str; @@ -232,8 +232,8 @@ parse_timedisplay_type(char *str) static int parse_color(char *str) { - char *name = str; - char *value = NULL; + const char *name = str; + const char *value = NULL; int len,i; i=0; |