diff options
author | Max Kellermann <max@duempel.org> | 2008-12-16 21:18:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-16 21:18:33 +0100 |
commit | d0024c077d94963d86651748888187944441699c (patch) | |
tree | df7e7f23505fcfa81dde8ec63c35a67e72329eca /src/ls.c | |
parent | 1d82edc6d36115ef4ecc251086a5b31c72333e5d (diff) |
ls: use bool
Use the C99 "bool" data type instead of "int".
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 */ |