diff options
author | Max Kellermann <max@duempel.org> | 2008-10-28 20:33:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-28 20:33:56 +0100 |
commit | 016d996131d560db6d72476ae29c74df84746fff (patch) | |
tree | c22a7d13e1b39927e70e73cbc8f78762fba0d92a /src/utils.c | |
parent | 4a71f66256d02c46bc2bb3665cc6451a2101d5ac (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/utils.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/utils.c b/src/utils.c index 57d1f30fa..8d5878723 100644 --- a/src/utils.c +++ b/src/utils.c @@ -261,13 +261,3 @@ void xpthread_cond_destroy(pthread_cond_t *cond) if ((err = pthread_cond_destroy(cond))) FATAL("failed to destroy cond: %s\n", strerror(err)); } - -int prefixcmp(const char *str, const char *prefix) -{ - for (; ; str++, prefix++) - if (!*prefix) - return 0; - else if (*str != *prefix) - return (unsigned char)*prefix - (unsigned char)*str; -} - |