summaryrefslogtreecommitdiff
path: root/sbin/newfs/newfs.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 06:22:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 06:22:16 +0000
commit4e11c004395b80e095e2512274ee143f75b923f2 (patch)
tree7dd90385c7fc68e56457d473631e3db8896270d2 /sbin/newfs/newfs.c
parent5dd7b59250a41ff74475db0fc6290dc6b029d96d (diff)
ansification
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r--sbin/newfs/newfs.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 9a44989f9c9..2786b1a3fcc 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newfs.c,v 1.40 2003/06/10 16:41:29 deraadt Exp $ */
+/* $OpenBSD: newfs.c,v 1.41 2003/06/11 06:22:14 deraadt Exp $ */
/* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)newfs.c 8.8 (Berkeley) 4/18/94";
#else
-static char rcsid[] = "$OpenBSD: newfs.c,v 1.40 2003/06/10 16:41:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: newfs.c,v 1.41 2003/06/11 06:22:14 deraadt Exp $";
#endif
#endif /* not lint */
@@ -188,9 +188,7 @@ char device[MAXPATHLEN];
extern char *__progname;
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch;
struct partition *pp;
@@ -305,7 +303,8 @@ main(argc, argv)
else if (strcmp(optarg, "time") == 0)
reqopt = opt = FS_OPTTIME;
else
- fatal("%s: unknown optimization preference: use `space' or `time'.");
+ fatal("%s: unknown optimization "
+ "preference: use `space' or `time'.");
}
break;
case 'p':
@@ -676,9 +675,7 @@ char lmsg[] = "%s: can't read disk label";
#endif
struct disklabel *
-getdisklabel(s, fd)
- char *s;
- int fd;
+getdisklabel(char *s, int fd)
{
static struct disklabel lab;
@@ -701,10 +698,7 @@ getdisklabel(s, fd)
}
void
-rewritelabel(s, fd, lp)
- char *s;
- int fd;
- struct disklabel *lp;
+rewritelabel(char *s, int fd, struct disklabel *lp)
{
#ifdef COMPAT
if (unlabeled)
@@ -809,7 +803,7 @@ struct fsoptions {
};
void
-usage()
+usage(void)
{
struct fsoptions *fsopt;