summaryrefslogtreecommitdiff
path: root/print-sctp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-04-26 17:24:42 -0700
committerGuy Harris <guy@alum.mit.edu>2015-04-26 17:24:42 -0700
commit69cb46af9119e8b5554bcc4bf1bf36f39cb82131 (patch)
treef75d78587057b773da075ffcd071e831f1e7beeb /print-sctp.c
parent4ac279241d8b41959cdef7b2778035cb014bb10b (diff)
downloadtcpdump-69cb46af9119e8b5554bcc4bf1bf36f39cb82131.tar.gz
Fix a bunch of de-constifications.
Diffstat (limited to 'print-sctp.c')
-rw-r--r--print-sctp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-sctp.c b/print-sctp.c
index d48202f5..6c41766d 100644
--- a/print-sctp.c
+++ b/print-sctp.c
@@ -514,7 +514,7 @@ void sctp_print(netdissect_options *ndo,
if( (u_long) endPacketPtr > (u_long) ndo->ndo_snapend)
endPacketPtr = (const void *) ndo->ndo_snapend;
- ip = (struct ip *)bp2;
+ ip = (const struct ip *)bp2;
#ifdef INET6
if (IP_V(ip) == 6)
ip6 = (const struct ip6_hdr *)bp2;
@@ -588,7 +588,7 @@ void sctp_print(netdissect_options *ndo,
break;
}
- ND_TCHECK2(*((uint8_t *)chunkDescPtr), chunkLength);
+ ND_TCHECK2(*((const uint8_t *)chunkDescPtr), chunkLength);
chunkEnd = ((const u_char*)chunkDescPtr + chunkLength);
align=chunkLength % 4;