aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2003-12-27 13:08:55 +0000
committerBruce Evans <bde@FreeBSD.org>2003-12-27 13:08:55 +0000
commit05a8df3c21e2a0ca1159fa885325389f4f627b60 (patch)
treee37d7e149beec0261acc9a8885fad95a111f6544 /sbin/fsck
parent2d13f3377f259af5f057daed38d67b7d821e6394 (diff)
downloadsrc-05a8df3c21e2a0ca1159fa885325389f4f627b60.tar.gz
src-05a8df3c21e2a0ca1159fa885325389f4f627b60.zip
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).
Notes
Notes: svn path=/head/; revision=123888
Diffstat (limited to 'sbin/fsck')
-rw-r--r--sbin/fsck/fsutil.c12
-rw-r--r--sbin/fsck/fsutil.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/sbin/fsck/fsutil.c b/sbin/fsck/fsutil.c
index f9fed44e0ccb..b77eeebf345c 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)
{
diff --git a/sbin/fsck/fsutil.h b/sbin/fsck/fsutil.h
index bad9a1db8a90..877e3468312b 100644
--- a/sbin/fsck/fsutil.h
+++ b/sbin/fsck/fsutil.h
@@ -31,8 +31,6 @@
* $FreeBSD$
*/
-void errexit(const char *, ...)
- __attribute__((__noreturn__,__format__(__printf__,1,2)));
void pfatal(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void pwarn(const char *, ...)