aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-28 20:33:56 +0100
committerMax Kellermann <max@duempel.org>2008-10-28 20:33:56 +0100
commit016d996131d560db6d72476ae29c74df84746fff (patch)
treec22a7d13e1b39927e70e73cbc8f78762fba0d92a /src/ls.c
parent4a71f66256d02c46bc2bb3665cc6451a2101d5ac (diff)
downloadmpd-016d996131d560db6d72476ae29c74df84746fff.tar.gz
mpd-016d996131d560db6d72476ae29c74df84746fff.tar.xz
mpd-016d996131d560db6d72476ae29c74df84746fff.zip
utils: use g_str_has_prefix() instead of prefixcmp()
Remove duplicated code from MPD.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index a456db040..2f652658c 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -21,7 +21,6 @@
#include "path.h"
#include "client.h"
#include "log.h"
-#include "utils.h"
#include "list.h"
#include "stored_playlist.h"
#include "os_compat.h"
@@ -92,7 +91,7 @@ int isRemoteUrl(const char *url)
while (*urlPrefixes) {
count++;
- if (!prefixcmp(url, *urlPrefixes))
+ if (g_str_has_prefix(url, *urlPrefixes))
return count;
urlPrefixes++;
}