From 6fbdc721d972d8c1f823acd5473a3dce8836d5fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2008 10:17:33 +0000 Subject: fix -Wconst warnings [ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/path.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/path.h') diff --git a/src/path.h b/src/path.h index 560cf6073..d29354523 100644 --- a/src/path.h +++ b/src/path.h @@ -38,13 +38,13 @@ void initPaths(void); void finishPaths(void); -char *fs_charset_to_utf8(char *dst, char *str); +char *fs_charset_to_utf8(char *dst, const char *str); -char *utf8_to_fs_charset(char *dst, char *str); +char *utf8_to_fs_charset(char *dst, const char *str); -void setFsCharset(char *charset); +void setFsCharset(const char *charset); -char *getFsCharset(void); +const char *getFsCharset(void); /* * pfx_dir - sets dst="$pfx/$path" and returns a pointer to path inside * dst @@ -75,7 +75,7 @@ char *rpp2app_r(char *dst, const char *rel_path); char *parent_path(char *path_max_tmp, const char *path); /* strips extra "///" and leading "/" and trailing "/" */ -char *sanitizePathDup(char *path); +char *sanitizePathDup(const char *path); /* this is actually like strlcpy (OpenBSD), but we don't actually want to * blindly use it everywhere, only for paths that are OK to truncate (for -- cgit v1.2.3