diff options
Diffstat (limited to 'sys/netinet/libalias')
-rw-r--r-- | sys/netinet/libalias/alias_util.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/libalias/alias_util.c b/sys/netinet/libalias/alias_util.c index acebc00..4234276 100644 --- a/sys/netinet/libalias/alias_util.c +++ b/sys/netinet/libalias/alias_util.c @@ -71,12 +71,11 @@ purposes); #endif u_short -LibAliasInternetChecksum(struct libalias *la, u_short * ptr, int nbytes) +LibAliasInternetChecksum(struct libalias *la __unused, u_short * ptr, + int nbytes) { int sum, oddbyte; - (void)la; - sum = 0; while (nbytes > 1) { sum += *ptr++; @@ -96,7 +95,7 @@ LibAliasInternetChecksum(struct libalias *la, u_short * ptr, int nbytes) u_short IpChecksum(struct ip *pip) { - return (PacketAliasInternetChecksum((u_short *) pip, + return (LibAliasInternetChecksum(NULL, (u_short *) pip, (pip->ip_hl << 2))); } |