From 806021be093ad00ce2022a532c0f4cc99b0065ac Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 22 May 1996 11:36:02 +0000 Subject: libutil --- sbin/newfs/newfs.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'sbin/newfs/newfs.c') diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 6fdaf7d90a9..9f6cef21b1c 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: newfs.c,v 1.19 1995/06/28 02:21:02 thorpej Exp $ */ +/* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */ /* * Copyright (c) 1983, 1989, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)newfs.c 8.8 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$NetBSD: newfs.c,v 1.19 1995/06/28 02:21:02 thorpej Exp $"; +static char rcsid[] = "$NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $"; #endif #endif /* not lint */ @@ -69,6 +69,7 @@ static char rcsid[] = "$NetBSD: newfs.c,v 1.19 1995/06/28 02:21:02 thorpej Exp $ #include #include #include +#include #if __STDC__ #include @@ -90,8 +91,6 @@ void fatal(const char *fmt, ...); void fatal(); #endif -int getmaxpartitions __P((void)); - #define COMPAT /* allow non-labeled disks */ /* @@ -681,21 +680,6 @@ fatal(fmt, va_alist) /*NOTREACHED*/ } -int -getmaxpartitions() -{ - int maxpart, mib[2]; - size_t varlen; - - mib[0] = CTL_KERN; - mib[1] = KERN_MAXPARTITIONS; - varlen = sizeof(maxpart); - if (sysctl(mib, 2, &maxpart, &varlen, NULL, 0) < 0) - fatal("getmaxpartitions: %s", strerror(errno)); - - return (maxpart); -} - usage() { if (mfs) { -- cgit v1.2.3