summaryrefslogtreecommitdiff
path: root/print-olsr.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-03 21:32:07 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-03 21:32:07 +0100
commitd526e47658b691c4b5ca0d29759d1f67b7fb037b (patch)
tree942b58ab554e7812016cc349cec8ddf4c6a874e1 /print-olsr.c
parent6e8e14d7fa7a73e8d42515eed917feff29ce9622 (diff)
downloadtcpdump-d526e47658b691c4b5ca0d29759d1f67b7fb037b.tar.gz
Use ND_TTEST_SIZE()/ND_TCHECK_SIZE() macros (1/n)
Diffstat (limited to 'print-olsr.c')
-rw-r--r--print-olsr.c4
1 files changed, 2 insertions, 2 deletions
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%%"