From 16824dd3bbb4d43b141d300c76afbdd0c30fa7b9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 11 Aug 2003 06:23:10 +0000 Subject: ansification and knf and protos --- sys/lib/libsa/dkcksum.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sys/lib/libsa/dkcksum.c') 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]; -- cgit v1.2.3