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/colors.h | |
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 'src/colors.h')
-rw-r--r-- | src/colors.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/colors.h b/src/colors.h index a66d693cc..421163006 100644 --- a/src/colors.h +++ b/src/colors.h @@ -13,10 +13,10 @@ #define COLOR_STATUS_TIME 10 #define COLOR_STATUS_ALERT 11 -short colors_str2color(char *str); +short colors_str2color(const char *str); -int colors_assign(char *name, char *value); -int colors_define(char *name, short r, short g, short b); +int colors_assign(const char *name, const char *value); +int colors_define(const char *name, short r, short g, short b); int colors_start(void); int colors_use(WINDOW *w, int id); |