diff options
Diffstat (limited to 'src/ls.cxx')
-rw-r--r-- | src/ls.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ls.cxx b/src/ls.cxx index b1a636416..117c8875b 100644 --- a/src/ls.cxx +++ b/src/ls.cxx @@ -19,14 +19,11 @@ #include "config.h" #include "ls.hxx" +#include "util/StringUtil.hxx" #include "util/UriUtil.hxx" #include "Client.hxx" -#include <glib.h> - #include <assert.h> -#include <string.h> - /** * file:// is not included in remoteUrlPrefixes, the connection method @@ -92,7 +89,7 @@ bool uri_supported_scheme(const char *uri) assert(uri_has_scheme(uri)); while (*urlPrefixes) { - if (g_str_has_prefix(uri, *urlPrefixes)) + if (StringStartsWith(uri, *urlPrefixes)) return true; urlPrefixes++; } |