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.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 '')
-rw-r--r-- | src/command.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/command.h b/src/command.h index 568f05098..75886d5ef 100644 --- a/src/command.h +++ b/src/command.h @@ -75,8 +75,8 @@ typedef struct { int keys[MAX_COMMAND_KEYS]; char flags; command_t command; - char *name; - char *description; + const char *name; + const char *description; } command_definition_t; command_definition_t *get_command_definitions(void); @@ -86,10 +86,10 @@ void command_dump_keys(void); int check_key_bindings(command_definition_t *cmds, char *buf, size_t size); int write_key_bindings(FILE *f, int all); -char *key2str(int key); -char *get_key_description(command_t command); -char *get_key_command_name(command_t command); -char *get_key_names(command_t command, int all); +const char *key2str(int key); +const char *get_key_description(command_t command); +const char *get_key_command_name(command_t command); +const char *get_key_names(command_t command, int all); command_t get_key_command(int key); command_t get_key_command_from_name(char *name); int assign_keys(command_t command, int keys[MAX_COMMAND_KEYS]); |