summaryrefslogtreecommitdiffstats
path: root/sbin/fsck/fsutil.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-12-27 13:08:55 +0000
committerbde <bde@FreeBSD.org>2003-12-27 13:08:55 +0000
commitccf8fdfdee138f695e756c0143be5acec5debb93 (patch)
treee37d7e149beec0261acc9a8885fad95a111f6544 /sbin/fsck/fsutil.c
parente46d02214885de178d06c333e181f8a723cd107d (diff)
downloadFreeBSD-src-ccf8fdfdee138f695e756c0143be5acec5debb93.zip
FreeBSD-src-ccf8fdfdee138f695e756c0143be5acec5debb93.tar.gz
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).
Diffstat (limited to 'sbin/fsck/fsutil.c')
-rw-r--r--sbin/fsck/fsutil.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sbin/fsck/fsutil.c b/sbin/fsck/fsutil.c
index f9fed44..b77eeeb 100644
--- a/sbin/fsck/fsutil.c
+++ b/sbin/fsck/fsutil.c
@@ -79,18 +79,6 @@ hotroot(void)
return hot;
}
-/*VARARGS*/
-void
-errexit(const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- (void) vfprintf(stderr, fmt, ap);
- va_end(ap);
- exit(8);
-}
-
static void
vmsg(int fatal, const char *fmt, va_list ap)
{
OpenPOWER on IntegriCloud