From 016d996131d560db6d72476ae29c74df84746fff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Oct 2008 20:33:56 +0100 Subject: utils: use g_str_has_prefix() instead of prefixcmp() Remove duplicated code from MPD. --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 77d59a6af..025570f84 100644 --- a/src/main.c +++ b/src/main.c @@ -46,12 +46,13 @@ #include "tag.h" #include "dbUtils.h" #include "../config.h" -#include "utils.h" #include "normalize.h" #include "zeroconf.h" #include "main_notify.h" #include "os_compat.h" +#include + #define SYSTEM_CONFIG_FILE_LOCATION "/etc/mpd.conf" #define USER_CONFIG_FILE_LOCATION "/.mpdconf" @@ -156,7 +157,7 @@ static void parseOptions(int argc, char **argv, Options * options) if (argc > 1) { int i = 1; while (i < argc) { - if (!prefixcmp(argv[i], "--")) { + if (g_str_has_prefix(argv[i], "--")) { if (strcmp(argv[i], "--help") == 0) { usage(argv); exit(EXIT_SUCCESS); -- cgit v1.2.3