diff options
author | Max Kellermann <max@duempel.org> | 2008-02-05 10:17:33 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-02-05 10:17:33 +0000 |
commit | 6fbdc721d972d8c1f823acd5473a3dce8836d5fa (patch) | |
tree | e72131541f4e887d5dedd6c75ffce455cbf6b97c /src/ls.h | |
parent | 22efbd5eca4705426af5cee17a65a3e76c33bec6 (diff) |
fix -Wconst warnings
[ew: cleaned up the dirty union hack a bit]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.h')
-rw-r--r-- | src/ls.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -24,26 +24,26 @@ #include "inputPlugin.h" #include "os_compat.h" -int lsPlaylists(int fd, char *utf8path); +int lsPlaylists(int fd, const char *utf8path); -char *getSuffix(char *utf8file); +const char *getSuffix(const char *utf8file); int isValidRemoteUtf8Url(char *utf8url); int isRemoteUrl(char *url); -int myStat(char *utf8file, struct stat *st); +int myStat(const char *utf8file, struct stat *st); -int isDir(char *utf8name); +int isDir(const char *utf8name); -int isPlaylist(char *utf8file); +int isPlaylist(const char *utf8file); -InputPlugin *hasMusicSuffix(char *utf8file, unsigned int next); +InputPlugin *hasMusicSuffix(const char *utf8file, unsigned int next); -InputPlugin *isMusic(char *utf8file, time_t * mtime, unsigned int next); +InputPlugin *isMusic(const char *utf8file, time_t * mtime, unsigned int next); int printRemoteUrlHandlers(int fd); -int isFile(char *utf8file, time_t * mtime); +int isFile(const char *utf8file, time_t * mtime); #endif |