summaryrefslogtreecommitdiffstats
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 19:51:33 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-26 00:00:16 +0100
commitd8729f8cb55d118c1937b7d001d70d6ea4476e52 (patch)
tree0890eb18b74ac62411e8a991d0db2d1579042a46 /isisd/isis_pdu.c
parentMerge pull request #3864 from qlyoung/fix-ospf-mtu-warning-style (diff)
downloadfrr-d8729f8cb55d118c1937b7d001d70d6ea4476e52.tar.xz
frr-d8729f8cb55d118c1937b7d001d70d6ea4476e52.zip
*: use proper bool initializers & fix comparisons
- bools should be initialized with true/false - bools do not need to be compared Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index 330da9b21..af35ed2e3 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -2146,11 +2146,11 @@ int send_csnp(struct isis_circuit *circuit, int level)
* stop lsp_id in this current CSNP.
*/
memcpy(start, stop, ISIS_SYS_ID_LEN + 2);
- loop = 0;
+ loop = false;
for (int i = ISIS_SYS_ID_LEN + 1; i >= 0; --i) {
if (start[i] < (uint8_t)0xff) {
start[i] += 1;
- loop = 1;
+ loop = true;
break;
}
}