aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 12:27:28 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 12:27:28 +0200
commit0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (patch)
tree611b143eb0834c892246f8b31311e9224977c952 /src/support.c
parent1f0ff952055c920c8671a1587c622e4df8b4a99d (diff)
downloadmpd-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.c')
-rw-r--r--src/support.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/support.c b/src/support.c
index 2f3e4fd5d..b7117e5be 100644
--- a/src/support.c
+++ b/src/support.c
@@ -31,12 +31,12 @@
#define BUFSIZE 1024
-extern void screen_status_printf(char *format, ...);
+extern void screen_status_printf(const char *format, ...);
static gboolean noconvert = TRUE;
size_t
-my_strlen(char *str)
+my_strlen(const char *str)
{
if( g_utf8_validate(str,-1,NULL) )
return g_utf8_strlen(str,-1);
@@ -157,7 +157,7 @@ charset_init(gboolean disable)
}
char *
-utf8_to_locale(char *utf8str)
+utf8_to_locale(const char *utf8str)
{
gchar *str;
gsize rb, wb;
@@ -189,7 +189,7 @@ utf8_to_locale(char *utf8str)
}
char *
-locale_to_utf8(char *localestr)
+locale_to_utf8(const char *localestr)
{
gchar *str;
gsize rb, wb;