summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted/inet.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-01 03:45:55 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-01 03:45:55 +0000
commitb9168a1f6148e2dd29a3096ca79c1d03114f4f6b (patch)
treee90cde2f7e8e39f12cdd270ce4ee1b3b0c9d3e7c /usr.sbin/mrouted/inet.c
parent6545bb74d8295fe93e7866ec2d4f027fee680680 (diff)
u_short cleansing
Diffstat (limited to 'usr.sbin/mrouted/inet.c')
-rw-r--r--usr.sbin/mrouted/inet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/mrouted/inet.c b/usr.sbin/mrouted/inet.c
index 7229545f913..c223bc957de 100644
--- a/usr.sbin/mrouted/inet.c
+++ b/usr.sbin/mrouted/inet.c
@@ -194,13 +194,13 @@ inet_parse(s)
*/
int
inet_cksum(addr, len)
- u_short *addr;
+ u_int16_t *addr;
u_int len;
{
register int nleft = (int)len;
- register u_short *w = addr;
- u_short answer = 0;
- register int sum = 0;
+ register u_int16_t *w = addr;
+ u_int16_t answer = 0;
+ register int32_t sum = 0;
/*
* Our algorithm is simple, using a 32 bit accumulator (sum),