summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bad144
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-10-25 17:33:25 +0000
committerbde <bde@FreeBSD.org>1994-10-25 17:33:25 +0000
commite98634582e466672ac3a948bc014f1bb2534b2a3 (patch)
treec80f0f2fcd0f053a13fa949c37ae2514bde0eb8c /usr.sbin/bad144
parentc5d2a2e07151795a94f78902333a2fc1c84c6da7 (diff)
downloadFreeBSD-src-e98634582e466672ac3a948bc014f1bb2534b2a3.zip
FreeBSD-src-e98634582e466672ac3a948bc014f1bb2534b2a3.tar.gz
Define DKBAD_MAGIC the same as in 1.1.5 (as 0x4321 instead of 0). 0 is
a poor value for a magic number, and we need to be compatible.
Diffstat (limited to 'usr.sbin/bad144')
-rw-r--r--usr.sbin/bad144/bad144.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bad144/bad144.c b/usr.sbin/bad144/bad144.c
index 0afa9e4..e3fb437 100644
--- a/usr.sbin/bad144/bad144.c
+++ b/usr.sbin/bad144/bad144.c
@@ -74,7 +74,7 @@ int dups;
int badfile = -1; /* copy of badsector table to use, -1 if any */
#define MAXSECSIZE 1024
struct dkbad curbad, oldbad;
-#define DKBAD_MAGIC 0
+#define DKBAD_MAGIC 0x4321
char label[BBSIZE];
daddr_t size, getold(), badsn();
OpenPOWER on IntegriCloud