aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ls.c b/src/ls.c
index 3de260d8b..60121472d 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -42,19 +42,18 @@ void printRemoteUrlHandlers(struct client *client)
}
}
-int isRemoteUrl(const char *url)
+
+bool isRemoteUrl(const char *url)
{
- int count = 0;
const char **urlPrefixes = remoteUrlPrefixes;
while (*urlPrefixes) {
- count++;
if (g_str_has_prefix(url, *urlPrefixes))
- return count;
+ return true;
urlPrefixes++;
}
- return 0;
+ return false;
}
/* suffixes should be ascii only characters */