diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2017-09-13 13:26:02 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2017-09-13 13:33:02 +0100 |
commit | 413840cf188d748819f718655db02e8927d590b0 (patch) | |
tree | 52e7fe2042329a9978ea02f8967b85185f49b079 /print-lwapp.c | |
parent | e5ab6e7001ce66740193be7db47b462a944ada10 (diff) | |
download | tcpdump-413840cf188d748819f718655db02e8927d590b0.tar.gz |
Don't specify struct as "const" within sizeof().
The only difference the const qualifier makes in this context is visual,
make it consistent with the rest of the source code.
Diffstat (limited to 'print-lwapp.c')
-rw-r--r-- | print-lwapp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-lwapp.c b/print-lwapp.c index bab3219f..c4393338 100644 --- a/print-lwapp.c +++ b/print-lwapp.c @@ -214,9 +214,9 @@ lwapp_control_print(netdissect_options *ndo, if (has_ap_ident) { ND_PRINT((ndo, "\n\tAP identity: %s", etheraddr_string(ndo, tptr))); - tptr+=sizeof(const struct lwapp_transport_header)+6; + tptr+=sizeof(struct lwapp_transport_header)+6; } else { - tptr+=sizeof(const struct lwapp_transport_header); + tptr+=sizeof(struct lwapp_transport_header); } while(tlen>0) { @@ -329,8 +329,8 @@ lwapp_data_print(netdissect_options *ndo, lwapp_trans_header->frag_id, tlen)); - tptr+=sizeof(const struct lwapp_transport_header); - tlen-=sizeof(const struct lwapp_transport_header); + tptr+=sizeof(struct lwapp_transport_header); + tlen-=sizeof(struct lwapp_transport_header); /* FIX - An IEEE 802.11 frame follows - hexdump for now */ print_unknown_data(ndo, tptr, "\n\t", tlen); |