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/command.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 'src/command.c')
-rw-r--r-- | src/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command.c b/src/command.c index a565c25ec..4f4a8e938 100644 --- a/src/command.c +++ b/src/command.c @@ -213,7 +213,7 @@ get_command_definitions(void) return cmds; } -char * +const char * key2str(int key) { static char buf[32]; @@ -307,7 +307,7 @@ set_key_flags(command_definition_t *cp, command_t command, int flags) return 1; } -char * +const char * get_key_names(command_t command, int all) { int i; @@ -337,7 +337,7 @@ get_key_names(command_t command, int all) return NULL; } -char * +const char * get_key_description(command_t command) { int i; @@ -352,7 +352,7 @@ get_key_description(command_t command) return NULL; } -char * +const char * get_key_command_name(command_t command) { int i; |