diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-15 19:39:00 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-15 19:39:00 +0100 |
commit | 1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c (patch) | |
tree | ffe265f8cf073cf8a5f109b37c4edb3503fb84cb /print-fr.c | |
parent | 09393e2faaf6ebd5f03e0d07b999a2f855100a70 (diff) | |
download | tcpdump-1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c.tar.gz |
Use more the ND_TTEST_1() macro
Diffstat (limited to 'print-fr.c')
-rw-r--r-- | print-fr.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -802,7 +802,7 @@ q933_print(netdissect_options *ndo, ND_PRINT((ndo, "%s", ndo->ndo_eflag ? "" : "Q.933")); - if (length == 0 || !ND_TTEST(*p)) { + if (length == 0 || !ND_TTEST_1(p)) { if (!ndo->ndo_eflag) ND_PRINT((ndo, ", ")); ND_PRINT((ndo, "length %u", length)); @@ -821,7 +821,7 @@ q933_print(netdissect_options *ndo, * Get the call reference value. */ for (i = 0; i < call_ref_length; i++) { - if (length == 0 || !ND_TTEST(*p)) { + if (length == 0 || !ND_TTEST_1(p)) { if (!ndo->ndo_eflag) ND_PRINT((ndo, ", ")); ND_PRINT((ndo, "length %u", olen)); @@ -835,7 +835,7 @@ q933_print(netdissect_options *ndo, /* * Get the message type. */ - if (length == 0 || !ND_TTEST(*p)) { + if (length == 0 || !ND_TTEST_1(p)) { if (!ndo->ndo_eflag) ND_PRINT((ndo, ", ")); ND_PRINT((ndo, "length %u", olen)); @@ -851,7 +851,7 @@ q933_print(netdissect_options *ndo, non_locking_shift = 0; unshift_codeset = codeset; if (length != 0) { - if (!ND_TTEST(*p)) { + if (!ND_TTEST_1(p)) { if (!ndo->ndo_eflag) ND_PRINT((ndo, ", ")); ND_PRINT((ndo, "length %u", olen)); @@ -952,7 +952,7 @@ q933_print(netdissect_options *ndo, /* * Get the first octet of the IE. */ - if (!ND_TTEST(*p)) { + if (!ND_TTEST_1(p)) { if (!ndo->ndo_vflag) { ND_PRINT((ndo, ", length %u", olen)); } @@ -995,7 +995,7 @@ q933_print(netdissect_options *ndo, /* * No. Get the IE length. */ - if (length == 0 || !ND_TTEST(*p)) { + if (length == 0 || !ND_TTEST_1(p)) { if (!ndo->ndo_vflag) { ND_PRINT((ndo, ", length %u", olen)); } |