summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/disklabel.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-07 03:27:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-07 03:27:47 +0000
commit3358712e68d0e01b1964e9fffbc9ce7a573e6dd1 (patch)
treec7be0607bd88620a8f8840a17fab047fb34a1e93 /sys/lib/libsa/disklabel.c
parentd7fe77d409b59d5cd7ab6c78c920bdc9a41dd2c2 (diff)
shrink bootblocks by splitting libsa contents into more files. from
waldi@moacs.indiv.nl.net, netbsd pr#1817
Diffstat (limited to 'sys/lib/libsa/disklabel.c')
-rw-r--r--sys/lib/libsa/disklabel.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/lib/libsa/disklabel.c b/sys/lib/libsa/disklabel.c
index 5c1a5199eac..81b655d8375 100644
--- a/sys/lib/libsa/disklabel.c
+++ b/sys/lib/libsa/disklabel.c
@@ -37,9 +37,8 @@
#include <sys/param.h>
#include <sys/disklabel.h>
+#include "stand.h"
-int dkcksum __P((struct disklabel *));
-
char *
getdisklabel(buf, lp)
const char *buf;
@@ -65,20 +64,3 @@ getdisklabel(buf, lp)
}
return (msg);
}
-
-/*
- * Compute checksum for disk label.
- */
-int
-dkcksum(lp)
- register struct disklabel *lp;
-{
- register u_short *start, *end;
- register u_short sum = 0;
-
- start = (u_short *)lp;
- end = (u_short *)&lp->d_partitions[lp->d_npartitions];
- while (start < end)
- sum ^= *start++;
- return (sum);
-}