diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-20 16:07:54 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-20 16:07:54 -0700 |
commit | 95817fee8a01f1cdef2f0fb66d351dd031b91c7e (patch) | |
tree | 49bb0928d88ea814784d94b3bf8b653ea9b5a5d4 /src/ls.c | |
parent | 5a42e7362b3745fb59f0aa49bab624f7fba83eff (diff) | |
download | mpd-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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++; } |