From d526e47658b691c4b5ca0d29759d1f67b7fb037b Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Wed, 3 Jan 2018 21:32:07 +0100 Subject: Use ND_TTEST_SIZE()/ND_TCHECK_SIZE() macros (1/n) --- print-olsr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-olsr.c') diff --git a/print-olsr.c b/print-olsr.c index 62a4bc92..86b39b01 100644 --- a/print-olsr.c +++ b/print-olsr.c @@ -239,7 +239,7 @@ olsr_print_lq_neighbor4(netdissect_options *ndo, while (hello_len >= sizeof(struct olsr_lq_neighbor4)) { lq_neighbor = (const struct olsr_lq_neighbor4 *)msg_data; - if (!ND_TTEST(*lq_neighbor)) + if (!ND_TTEST_SIZE(lq_neighbor)) return (-1); ND_PRINT((ndo, "\n\t neighbor %s, link-quality %.2f%%" @@ -263,7 +263,7 @@ olsr_print_lq_neighbor6(netdissect_options *ndo, while (hello_len >= sizeof(struct olsr_lq_neighbor6)) { lq_neighbor = (const struct olsr_lq_neighbor6 *)msg_data; - if (!ND_TTEST(*lq_neighbor)) + if (!ND_TTEST_SIZE(lq_neighbor)) return (-1); ND_PRINT((ndo, "\n\t neighbor %s, link-quality %.2f%%" -- cgit v1.2.1