diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-08-07 09:27:02 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-08-07 09:27:02 +0000 |
commit | ec124f7a05558ad9de99cbeeb806a7b270b22ce8 (patch) | |
tree | ee2b97a984163c108ce832e0f5864f80db98d4f5 /sys | |
parent | 70528d974b81c0f483866f5896d1492cd9c65d62 (diff) |
I know u_short will always be 16 bits, call me a pedant..
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_disk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index bfbdb0d1396..3768d766b36 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.14 1997/05/22 05:34:56 deraadt Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.15 1997/08/07 09:27:01 niklas Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -180,11 +180,11 @@ u_int dkcksum(lp) register struct disklabel *lp; { - register u_short *start, *end; - register u_short sum = 0; + register u_int16_t *start, *end; + register u_int16_t sum = 0; - start = (u_short *)lp; - end = (u_short *)&lp->d_partitions[lp->d_npartitions]; + start = (u_int16_t *)lp; + end = (u_int16_t *)&lp->d_partitions[lp->d_npartitions]; while (start < end) sum ^= *start++; return (sum); |