From ccf8fdfdee138f695e756c0143be5acec5debb93 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 27 Dec 2003 13:08:55 +0000 Subject: fsck_msdosfs/main.c: - Don't use errexit() to (mis)implement usage(). Using errexit() just gave the bogus exit code 8. - Fixed 3 other style bugs in usage(). fsck/fsutil.[ch]: - Garbage-collected errexit(). It is essentially just one of NetBSD's fsck_ext2fs error printing functions, but we don't have fsck_ext2fs and the function is unsuitable for use there too (since pfatal() is also used and it printf to a different stream). --- sbin/fsck_msdosfs/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin/fsck_msdosfs/main.c') diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index 6f44201..eb49486 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -58,9 +58,11 @@ int rdonly; /* device is opened read only (supersedes above) */ static void usage(void) __dead2; static void -usage() +usage(void) { - errexit("usage: fsck_msdos [-fnpy] filesystem ... \n"); + + fprintf(stderr, "usage: fsck_msdos [-fnpy] filesystem ...\n"); + exit(1); } int -- cgit v1.1