use warnx when warning about an old BSD partition ID (i386 MBR code),

since err/warn seem to be used consistently throughout the code, rather
than fprintf.
This commit is contained in:
cgd 1998-03-24 23:47:28 +00:00
parent eae9f47f62
commit 9b9f17c131
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.c,v 1.50 1998/03/24 23:45:31 cgd Exp $ */
/* $NetBSD: disklabel.c,v 1.51 1998/03/24 23:47:28 cgd Exp $ */
/*
* Copyright (c) 1987, 1993
@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\
static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
#else
__RCSID("$NetBSD: disklabel.c,v 1.50 1998/03/24 23:45:31 cgd Exp $");
__RCSID("$NetBSD: disklabel.c,v 1.51 1998/03/24 23:47:28 cgd Exp $");
#endif
#endif /* not lint */
@ -627,7 +627,7 @@ readmbr(f)
/* didn't find it -- look for 386BSD partition */
for (part = 0; part < NDOSPART; part++) {
if (dp[part].dp_typ == DOSPTYP_386BSD) {
fprintf(stderr, "old BSD partition ID!\n");
warnx("old BSD partition ID!");
return (&dp[part]);
}
}