diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-10 15:17:06 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-10 15:17:06 +0100 |
commit | e44bc94ad0969b1bf2747518dbd0ebe4608152ee (patch) | |
tree | cc03f2b52637f6a58d81233e71ed924f54c55c6a /print-802_11.c | |
parent | 6bb65331a5f9d35186238af0ed736a3949616bc2 (diff) | |
download | tcpdump-e44bc94ad0969b1bf2747518dbd0ebe4608152ee.tar.gz |
Use pointer expressions like in most similar cases
Diffstat (limited to 'print-802_11.c')
-rw-r--r-- | print-802_11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-802_11.c b/print-802_11.c index a499edcc..f86fafe9 100644 --- a/print-802_11.c +++ b/print-802_11.c @@ -1983,7 +1983,7 @@ ieee_802_11_hdr_print(netdissect_options *ndo, } if (meshdrlen != 0) { const struct meshcntl_t *mc = - (const struct meshcntl_t *)&p[hdrlen - meshdrlen]; + (const struct meshcntl_t *)(p + hdrlen - meshdrlen); int ae = mc->flags & 3; ND_PRINT((ndo, "MeshData (AE %d TTL %u seq %u", ae, mc->ttl, |