Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sbin/disklabel Pull up revision 1.9 (requested by lukem):
details: https://anonhg.NetBSD.org/src/rev/3b5978abe802
branches: netbsd-1-5
changeset: 490755:3b5978abe802
user: he <he%NetBSD.org@localhost>
date: Mon Feb 26 22:26:49 2001 +0000
description:
Pull up revision 1.9 (requested by lukem):
Several fixes and enhancements:
o with ``-I'', initialize the label if it's not there, it's
corrupt, or there's no ``fake'' label.
o correct partition table header
o move some functions into a separate file for other programs
to use
o fix examples and cross references
o various cleanups
diffstat:
sbin/disklabel/dkcksum.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r 69d17fc8380f -r 3b5978abe802 sbin/disklabel/dkcksum.c
--- a/sbin/disklabel/dkcksum.c Mon Feb 26 22:26:34 2001 +0000
+++ b/sbin/disklabel/dkcksum.c Mon Feb 26 22:26:49 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dkcksum.c,v 1.8 1997/09/14 08:50:18 lukem Exp $ */
+/* $NetBSD: dkcksum.c,v 1.8.12.1 2001/02/26 22:26:49 he Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)dkcksum.c 8.1 (Berkeley) 6/5/93";
#else
-__RCSID("$NetBSD: dkcksum.c,v 1.8 1997/09/14 08:50:18 lukem Exp $");
+__RCSID("$NetBSD: dkcksum.c,v 1.8.12.1 2001/02/26 22:26:49 he Exp $");
#endif
#endif /* not lint */
@@ -47,12 +47,12 @@
#include "dkcksum.h"
u_short
-dkcksum(lp)
- struct disklabel *lp;
+dkcksum(struct disklabel *lp)
{
- u_short *start, *end;
- u_short sum = 0;
+ u_short *start, *end;
+ u_short sum;
+ sum = 0;
start = (u_short *)lp;
end = (u_short *)&lp->d_partitions[lp->d_npartitions];
while (start < end)
Home |
Main Index |
Thread Index |
Old Index