diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-08-11 06:23:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-08-11 06:23:10 +0000 |
commit | 16824dd3bbb4d43b141d300c76afbdd0c30fa7b9 (patch) | |
tree | 08f2b84878ea46e749b47e3b2953507245ad5384 /sys/lib/libsa/dkcksum.c | |
parent | 678b21869f24e6ddc3a341fad1a87c353c5464ca (diff) |
ansification and knf and protos
Diffstat (limited to 'sys/lib/libsa/dkcksum.c')
-rw-r--r-- | sys/lib/libsa/dkcksum.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/lib/libsa/dkcksum.c b/sys/lib/libsa/dkcksum.c index 1aba3a5ff49..f46cecb3f9c 100644 --- a/sys/lib/libsa/dkcksum.c +++ b/sys/lib/libsa/dkcksum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dkcksum.c,v 1.4 2003/06/02 23:28:09 millert Exp $ */ +/* $OpenBSD: dkcksum.c,v 1.5 2003/08/11 06:23:09 deraadt Exp $ */ /* $NetBSD: disklabel.c,v 1.3 1994/10/26 05:44:42 cgd Exp $ */ /*- @@ -40,11 +40,10 @@ * Compute checksum for disk label. */ u_int -dkcksum(lp) - register struct disklabel *lp; +dkcksum(struct disklabel *lp) { - register u_short *start, *end; - register u_short sum = 0; + u_short *start, *end; + u_short sum = 0; start = (u_short *)lp; end = (u_short *)&lp->d_partitions[lp->d_npartitions]; |