diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2008-04-07 23:37:15 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2008-04-07 23:37:15 +0000 |
commit | b85407e034925eea83f93e29cde8eada6410a0eb (patch) | |
tree | 0fef41fda085dcb8ff673ee07862aa1a03db9d9c /sbin/disklabel | |
parent | 4846b4d9092862a2ccdf01ec16534d0bad77f2bb (diff) |
Since Alpha is NUMBOOT=0, no need for #ifdef __alpha__ code inside a
#if NUMBOOT > 0 section.
Diffstat (limited to 'sbin/disklabel')
-rw-r--r-- | sbin/disklabel/disklabel.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 9b8f2cf91b5..12d5f22c307 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.126 2008/04/07 23:27:21 krw Exp $ */ +/* $OpenBSD: disklabel.c,v 1.127 2008/04/07 23:37:14 krw Exp $ */ /* * Copyright (c) 1987, 1993 @@ -39,7 +39,7 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.126 2008/04/07 23:27:21 krw Exp $"; +static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.127 2008/04/07 23:37:14 krw Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -456,22 +456,6 @@ writelabel(int f, char *boot, struct disklabel *lp) if (ioctl(f, DIOCWLABEL, &writeable) < 0) perror("ioctl DIOCWLABEL"); -#ifdef __alpha__ - /* - * The Alpha requires that the boot block be checksummed. - * The first 63 8-byte quantites are summed into the 64th. - */ - { - int i; - u_int64_t *dp, sum; - - dp = (u_int64_t *)boot; - sum = 0; - for (i = 0; i < 63; i++) - sum += dp[i]; - dp[63] = sum; - } -#endif if (write(f, boot, lp->d_bbsize) != lp->d_bbsize) { perror("write"); return (1); |