From fa205f69eda4643845eaa7e2eb0f0fd0f526194d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 27 Jul 1997 02:33:36 +0000 Subject: use RAW_PART --- usr.sbin/bad144/bad144.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'usr.sbin/bad144') diff --git a/usr.sbin/bad144/bad144.c b/usr.sbin/bad144/bad144.c index 40b4a87ea9a..0c733415406 100644 --- a/usr.sbin/bad144/bad144.c +++ b/usr.sbin/bad144/bad144.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)bad144.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: bad144.c,v 1.2 1997/06/29 07:15:29 deraadt Exp $"; +static char *rcsid = "$Id: bad144.c,v 1.3 1997/07/27 02:33:35 deraadt Exp $"; #endif not lint /* @@ -69,11 +69,6 @@ static char *rcsid = "$Id: bad144.c,v 1.2 1997/06/29 07:15:29 deraadt Exp $"; #include #define RETRIES 10 /* number of retries on reading old sectors */ -#ifdef i386 /* XXX */ -#define RAWPART "d" /* disk partition containing badsector tables */ -#else -#define RAWPART "c" /* disk partition containing badsector tables */ -#endif int fflag, add, copy, verbose, nflag; int dups; @@ -154,7 +149,8 @@ usage: exit(1); } if (argv[0][0] != '/') - (void)sprintf(name, "%sr%s%s", _PATH_DEV, argv[0], RAWPART); + (void)sprintf(name, "%sr%s%c", _PATH_DEV, argv[0], + 'a' + RAW_PART); else strcpy(name, argv[0]); f = open(name, argc == 1? O_RDONLY : O_RDWR); -- cgit v1.2.3