diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 19:55:37 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-26 00:00:16 +0100 |
commit | b08047f82d887d1ea639bbfe97147b46572099d5 (patch) | |
tree | 0651f297cdb62015696c6f75e8c4f8ae34f2b7f2 /tests/lib | |
parent | *: use proper bool initializers & fix comparisons (diff) | |
download | frr-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.c | 2 |
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)); } |