From 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:28 +0200 Subject: const pointers Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings. --- src/support.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/support.h') 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); -- cgit v1.2.3