aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsirand/fsirand.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-03-21 13:10:52 +0000
committerWarner Losh <imp@FreeBSD.org>2002-03-21 13:10:52 +0000
commit0638cc1a3950101932c23ee84e49ec09b9ffc92e (patch)
tree3e13d718c267505bb9b3d399078f639dcce5db19 /sbin/fsirand/fsirand.c
parent6da4e60a23f8f4283bcad18322c7a6c2bdf0dfe8 (diff)
downloadsrc-0638cc1a3950101932c23ee84e49ec09b9ffc92e.tar.gz
src-0638cc1a3950101932c23ee84e49ec09b9ffc92e.zip
o __P removal.
o ansi function definitions. o main prototype removal o unifdef __STDC__
Notes
Notes: svn path=/head/; revision=92881
Diffstat (limited to 'sbin/fsirand/fsirand.c')
-rw-r--r--sbin/fsirand/fsirand.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c
index 96a5484ed130..e908f2aba71a 100644
--- a/sbin/fsirand/fsirand.c
+++ b/sbin/fsirand/fsirand.c
@@ -51,15 +51,13 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
-static void usage __P((void));
-int fsirand __P((char *));
+static void usage(void) __dead2;
+int fsirand(char *);
int printonly = 0, force = 0, ignorelabel = 0;
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int n, ex = 0;
struct rlimit rl;
@@ -104,8 +102,7 @@ main(argc, argv)
}
int
-fsirand(device)
- char *device;
+fsirand(char *device)
{
static struct dinode *inodebuf;
static size_t oldibufsize;
@@ -282,7 +279,7 @@ fsirand(device)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: fsirand [-b] [-f] [-p] special [special ...]\n");