aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-20 16:07:54 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-20 16:07:54 -0700
commit95817fee8a01f1cdef2f0fb66d351dd031b91c7e (patch)
tree49bb0928d88ea814784d94b3bf8b653ea9b5a5d4 /src/ls.c
parent5a42e7362b3745fb59f0aa49bab624f7fba83eff (diff)
downloadmpd-95817fee8a01f1cdef2f0fb66d351dd031b91c7e.tar.gz
mpd-95817fee8a01f1cdef2f0fb66d351dd031b91c7e.tar.xz
mpd-95817fee8a01f1cdef2f0fb66d351dd031b91c7e.zip
start using prefixcmp()
LOC reduction and less noise makes things easier for tired old folks to follow.
Diffstat (limited to '')
-rw-r--r--src/ls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index f87e09fdb..d7cef0bfe 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -89,9 +89,8 @@ int isRemoteUrl(const char *url)
while (*urlPrefixes) {
count++;
- if (strncmp(*urlPrefixes, url, strlen(*urlPrefixes)) == 0) {
+ if (!prefixcmp(url, *urlPrefixes))
return count;
- }
urlPrefixes++;
}