From 177e2cd4a2b7f844974ccefebd38733ca03924d9 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 21 Aug 2008 17:43:23 +0000 Subject: [PATCH] constify the pointer passed to magic_tcpudp_cksum. --- tcpip.cc | 2 +- tcpip.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpip.cc b/tcpip.cc index 36befb3ea..c2b6ce707 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -1012,7 +1012,7 @@ unsigned short in_cksum(u16 *ptr,int nbytes) { sections 3.2, 11.3, and 17.3. */ unsigned short magic_tcpudp_cksum(const struct in_addr *src, const struct in_addr *dst, - u8 proto, u16 len, char *hstart) + u8 proto, u16 len, const void *hstart) { struct pseudo { struct in_addr src; diff --git a/tcpip.h b/tcpip.h index 1b26f5819..26897f2a5 100644 --- a/tcpip.h +++ b/tcpip.h @@ -481,7 +481,7 @@ unsigned short in_cksum(u16 *ptr,int nbytes); unsigned short magic_tcpudp_cksum(const struct in_addr *src, const struct in_addr *dst, - u8 proto, u16 len, char *hstart); + u8 proto, u16 len, const void *hstart); /* Build and send a raw tcp packet. If TTL is -1, a partially random (but likely large enough) one is chosen */