diff options
Diffstat (limited to 'sbin/disklabel/disklabel.c')
-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); |