aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-23 20:48:12 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 20:48:12 +0200
commit27fad52c6bb1d8803f400a6e95fa5c24396a1c12 (patch)
tree9b1fadeef43c3193b29344cda223c7b2c754433b /src/ls.c
parentf5df13f853cf4c0e529244dd40ab57c78a7d1bc6 (diff)
downloadmpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.tar.gz
mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.tar.xz
mpd-27fad52c6bb1d8803f400a6e95fa5c24396a1c12.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 f5c48a6fa..c123ddc02 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++;
}