aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:01:53 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:01:53 +0200
commit12bcba8b89ad503cbdfb8261c5c26b9f87860345 (patch)
tree640d2f57cd4f9e5059db9b0c533b7919d4ddb52f /src/ls.c
parentd8a8fa63b40801f597cc374bcfcbdd397aa0a670 (diff)
downloadmpd-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ls.c b/src/ls.c
index a9a2388fc..4a49e240d 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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;