summaryrefslogtreecommitdiff
path: root/print-sl.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-02 14:56:12 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-02 20:52:22 +0100
commite83dfd9b161eeb2bde1a42b5e3f2fc83639d54f3 (patch)
tree15fa846fd58436649c3e6ca5410ac4f86ce89ecd /print-sl.c
parent2d20acd7420ab5b8d90f9921185a506a3a2f1c4a (diff)
downloadtcpdump-e83dfd9b161eeb2bde1a42b5e3f2fc83639d54f3.tar.gz
Simplify some expressions
This will also help some future scripted code updates.
Diffstat (limited to 'print-sl.c')
-rw-r--r--print-sl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-sl.c b/print-sl.c
index 419864ef..ed29874e 100644
--- a/print-sl.c
+++ b/print-sl.c
@@ -184,8 +184,8 @@ sliplink_print(netdissect_options *ndo,
return;
}
if (p[SLX_CHDR] & TYPE_COMPRESSED_TCP) {
- compressed_sl_print(ndo, &p[SLX_CHDR], ip,
- length, dir);
+ compressed_sl_print(ndo, p + SLX_CHDR, ip,
+ length, dir);
ND_PRINT((ndo, ": "));
} else
ND_PRINT((ndo, "slip-%d!: ", EXTRACT_U_1(p + SLX_CHDR)));