]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/frrstr.c
*: return bool from boolean functions
[mirror_frr.git] / lib / frrstr.c
index 85d968182b042f87a46f7eb33e9802339ca818d3..fd337073f812d30aa77ffea4adf325e47f1eb10d 100644 (file)
@@ -155,13 +155,13 @@ void frrstr_strvec_free(vector v)
 bool begins_with(const char *str, const char *prefix)
 {
        if (!str || !prefix)
-               return 0;
+               return false;
 
        size_t lenstr = strlen(str);
        size_t lenprefix = strlen(prefix);
 
        if (lenprefix > lenstr)
-               return 0;
+               return false;
 
        return strncmp(str, prefix, lenprefix) == 0;
 }