summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 19:55:37 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-26 00:00:16 +0100
commitb08047f82d887d1ea639bbfe97147b46572099d5 (patch)
tree0651f297cdb62015696c6f75e8c4f8ae34f2b7f2 /tests/lib
parent*: use proper bool initializers & fix comparisons (diff)
downloadfrr-b08047f82d887d1ea639bbfe97147b46572099d5.tar.xz
frr-b08047f82d887d1ea639bbfe97147b46572099d5.zip
*: return bool from boolean functions
Not 1 or 0. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/test_srcdest_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/test_srcdest_table.c b/tests/lib/test_srcdest_table.c
index 5c0e17177..19a40b218 100644
--- a/tests/lib/test_srcdest_table.c
+++ b/tests/lib/test_srcdest_table.c
@@ -105,7 +105,7 @@ static unsigned int log_key(void *data)
static bool log_cmp(const void *a, const void *b)
{
if (a == NULL || b == NULL)
- return 0;
+ return false;
return !memcmp(a, b, 2 * sizeof(struct prefix));
}