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-lmp.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-lmp.c')
-rw-r--r-- | print-lmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-lmp.c b/print-lmp.c index 916a1d67..289a6afc 100644 --- a/print-lmp.c +++ b/print-lmp.c @@ -469,7 +469,7 @@ lmp_print(netdissect_options *ndo, tok2str(lmp_msg_type_values, "unknown, type: %u",lmp_com_header->msg_type), bittok2str(lmp_header_flag_values,"none",lmp_com_header->flags), tlen)); - if (tlen < sizeof(const struct lmp_common_header)) { + if (tlen < sizeof(struct lmp_common_header)) { ND_PRINT((ndo, " (too short)")); return; } @@ -478,8 +478,8 @@ lmp_print(netdissect_options *ndo, tlen = len; } - tptr+=sizeof(const struct lmp_common_header); - tlen-=sizeof(const struct lmp_common_header); + tptr+=sizeof(struct lmp_common_header); + tlen-=sizeof(struct lmp_common_header); while(tlen>0) { /* did we capture enough for fully decoding the object header ? */ |