summaryrefslogtreecommitdiff
path: root/print-smb.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-16 20:46:46 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-16 20:46:46 +0100
commitb01cc24ce4d026d06521e302b0bbd307a74ea7cb (patch)
tree5679a16502cdbc37b1aab77095f393784d33b3f0 /print-smb.c
parented4e3d85a3f25231845c1be7924f64cedc69d3da (diff)
downloadtcpdump-b01cc24ce4d026d06521e302b0bbd307a74ea7cb.tar.gz
Simplify some expressions
Diffstat (limited to 'print-smb.c')
-rw-r--r--print-smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-smb.c b/print-smb.c
index 3ef92253..85e69fa0 100644
--- a/print-smb.c
+++ b/print-smb.c
@@ -873,8 +873,8 @@ print_smb(netdissect_options *ndo,
int i;
int v;
- for (i = 0; &words[1 + 2 * i] < maxwords; i++) {
- ND_TCHECK_2(words + (1 + 2 * i));
+ for (i = 0; words + 1 + 2 * i < maxwords; i++) {
+ ND_TCHECK_2(words + 1 + 2 * i);
v = EXTRACT_LE_U_2(words + 1 + 2 * i);
ND_PRINT((ndo, "smb_vwv[%d]=%d (0x%X)\n", i, v, v));
}