diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:01:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-29 09:01:53 +0200 |
commit | 12bcba8b89ad503cbdfb8261c5c26b9f87860345 (patch) | |
tree | 640d2f57cd4f9e5059db9b0c533b7919d4ddb52f /src/ls.c | |
parent | d8a8fa63b40801f597cc374bcfcbdd397aa0a670 (diff) | |
download | mpd-12bcba8b89ad503cbdfb8261c5c26b9f87860345.tar.gz mpd-12bcba8b89ad503cbdfb8261c5c26b9f87860345.tar.xz mpd-12bcba8b89ad503cbdfb8261c5c26b9f87860345.zip |
pass constant pointers
And again, convert arguments to const.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,10 +42,10 @@ int printRemoteUrlHandlers(int fd) return 0; } -int isValidRemoteUtf8Url(char *utf8url) +int isValidRemoteUtf8Url(const char *utf8url) { int ret = 0; - char *temp; + const char *temp; switch (isRemoteUrl(utf8url)) { case 1: @@ -82,7 +82,7 @@ int isValidRemoteUtf8Url(char *utf8url) return ret; } -int isRemoteUrl(char *url) +int isRemoteUrl(const char *url) { int count = 0; const char **urlPrefixes = remoteUrlPrefixes; |