]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lspping.c
Don't specify struct as "const" within sizeof().
[tcpdump] / print-lspping.c
index 274cc68b7630978415b7136c120c2ef48754d290..cd00652462090dcbcfe57323122b8b11db7a9014 100644 (file)
@@ -523,7 +523,7 @@ lspping_print(netdissect_options *ndo,
 
     tptr=pptr;
     lspping_com_header = (const struct lspping_common_header *)pptr;
-    if (len < sizeof(const struct lspping_common_header))
+    if (len < sizeof(struct lspping_common_header))
         goto tooshort;
     ND_TCHECK(*lspping_com_header);
 
@@ -596,8 +596,8 @@ lspping_print(netdissect_options *ndo,
     else
         ND_PRINT((ndo, "no timestamp"));
 
-    tptr+=sizeof(const struct lspping_common_header);
-    tlen-=sizeof(const struct lspping_common_header);
+    tptr+=sizeof(struct lspping_common_header);
+    tlen-=sizeof(struct lspping_common_header);
 
     while (tlen != 0) {
         /* Does the TLV go past the end of the packet? */