summaryrefslogtreecommitdiffstats
path: root/lib/frrstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frrstr.c')
-rw-r--r--lib/frrstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frrstr.c b/lib/frrstr.c
index 85d968182..fd337073f 100644
--- a/lib/frrstr.c
+++ b/lib/frrstr.c
@@ -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;
}