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/support.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/support.h')
-rw-r--r-- | src/support.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/support.h b/src/support.h index 089a6863a..c9cfed090 100644 --- a/src/support.h +++ b/src/support.h @@ -23,11 +23,11 @@ typedef struct { char *strscroll(char *str, char *separator, int width, scroll_state_t *st); void charset_init(gboolean disable); -char *utf8_to_locale(char *str); -char *locale_to_utf8(char *str); +char *utf8_to_locale(const char *str); +char *locale_to_utf8(const char *str); /* number of characters in str */ -size_t my_strlen(char *str); +size_t my_strlen(const char *str); /* number of bytes in str */ size_t my_strsize(char *str); |