From 413840cf188d748819f718655db02e8927d590b0 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Wed, 13 Sep 2017 13:26:02 +0100 Subject: 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. --- print-eap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-eap.c') diff --git a/print-eap.c b/print-eap.c index d76aea33..5126c96f 100644 --- a/print-eap.c +++ b/print-eap.c @@ -177,8 +177,8 @@ eap_print(netdissect_options *ndo, eap->version, EXTRACT_16BITS(eap->length))); - tptr += sizeof(const struct eap_frame_t); - tlen -= sizeof(const struct eap_frame_t); + tptr += sizeof(struct eap_frame_t); + tlen -= sizeof(struct eap_frame_t); switch (eap->type) { case EAP_FRAME_TYPE_PACKET: -- cgit v1.2.1