diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-01 03:45:55 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-01 03:45:55 +0000 |
commit | b9168a1f6148e2dd29a3096ca79c1d03114f4f6b (patch) | |
tree | e90cde2f7e8e39f12cdd270ce4ee1b3b0c9d3e7c /usr.sbin/mrouted/inet.c | |
parent | 6545bb74d8295fe93e7866ec2d4f027fee680680 (diff) |
u_short cleansing
Diffstat (limited to 'usr.sbin/mrouted/inet.c')
-rw-r--r-- | usr.sbin/mrouted/inet.c | 8 |
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), |