summaryrefslogtreecommitdiff
path: root/sbin/fsck/preen.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-03 22:32:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-03 22:32:35 +0000
commita9a4354fed4cec65ca359fe04095a7a7d4823a8a (patch)
tree0fedc69061ae9a279d3db23f185ff0b038a706d9 /sbin/fsck/preen.c
parent4c287e033bc1d7be66ec3f6c6735246a781a9e08 (diff)
ansi
Diffstat (limited to 'sbin/fsck/preen.c')
-rw-r--r--sbin/fsck/preen.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/sbin/fsck/preen.c b/sbin/fsck/preen.c
index c8c8dcebcff..ecaaf3c5099 100644
--- a/sbin/fsck/preen.c
+++ b/sbin/fsck/preen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: preen.c,v 1.11 2002/06/09 08:13:05 todd Exp $ */
+/* $OpenBSD: preen.c,v 1.12 2002/07/03 22:32:32 deraadt Exp $ */
/* $NetBSD: preen.c,v 1.15 1996/09/28 19:21:42 christos Exp $ */
/*
@@ -85,11 +85,8 @@ static int startdisk(struct diskentry *,
static void printpart(void);
int
-checkfstab(flags, maxrun, docheck, checkit)
- int flags, maxrun;
- void *(*docheck)(struct fstab *);
- int (*checkit)(const char *, const char *, const char *, void *,
- pid_t *);
+checkfstab(int flags, int maxrun, void *(*docheck)(struct fstab *),
+ int (*checkit)(const char *, const char *, const char *, void *, pid_t *))
{
struct fstab *fs;
struct diskentry *d, *nextdisk;
@@ -249,8 +246,7 @@ checkfstab(flags, maxrun, docheck, checkit)
static struct diskentry *
-finddisk(name)
- const char *name;
+finddisk(const char *name)
{
const char *p;
size_t len = 0;
@@ -283,7 +279,7 @@ finddisk(name)
static void
-printpart()
+printpart(void)
{
struct diskentry *d;
struct partentry *p;
@@ -299,9 +295,7 @@ printpart()
static void
-addpart(type, devname, mntpt, auxarg)
- const char *type, *devname, *mntpt;
- void *auxarg;
+addpart(const char *type, const char *devname, const char *mntpt, void *auxarg)
{
struct diskentry *d = finddisk(devname);
struct partentry *p;
@@ -323,10 +317,8 @@ addpart(type, devname, mntpt, auxarg)
static int
-startdisk(d, checkit)
- struct diskentry *d;
- int (*checkit)(const char *, const char *, const char *, void *,
- pid_t *);
+startdisk(struct diskentry *d,
+ int (*checkit)(const char *, const char *, const char *, void *, pid_t *))
{
struct partentry *p = d->d_part.tqh_first;
int rv;