aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ifs/preen.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-03-20 22:57:10 +0000
committerWarner Losh <imp@FreeBSD.org>2002-03-20 22:57:10 +0000
commitb70cd7ee6822a6f7ec2d120c14db0625ddd9e024 (patch)
treeb0afc6442896204ba707723c961e59b4de37a932 /sbin/fsck_ifs/preen.c
parent73bf18edb8e37fb1bc9e6f3f25daf63afaa3d374 (diff)
downloadsrc-b70cd7ee6822a6f7ec2d120c14db0625ddd9e024.tar.gz
src-b70cd7ee6822a6f7ec2d120c14db0625ddd9e024.zip
o __P removed
o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype
Notes
Notes: svn path=/head/; revision=92839
Diffstat (limited to 'sbin/fsck_ifs/preen.c')
-rw-r--r--sbin/fsck_ifs/preen.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/sbin/fsck_ifs/preen.c b/sbin/fsck_ifs/preen.c
index 17e22459bf83..6a518de2f901 100644
--- a/sbin/fsck_ifs/preen.c
+++ b/sbin/fsck_ifs/preen.c
@@ -68,17 +68,13 @@ struct disk {
int nrun, ndisks;
-static void addpart __P((char *name, char *fsname, long auxdata));
-static struct disk *finddisk __P((char *name));
-static int startdisk __P((struct disk *dk,
- int (*checkit)(char *, char *, long, int)));
+static void addpart(char *name, char *fsname, long auxdata);
+static struct disk *finddisk(char *name);
+static int startdisk(struct disk *dk, int (*checkit)(char *, char *, long, int));
int
-checkfstab(preen, maxrun, docheck, chkit)
- int preen;
- int maxrun;
- int (*docheck)(struct fstab *);
- int (*chkit)(char *, char *, long, int);
+checkfstab(int preen, int maxrun, int (*docheck)(struct fstab *),
+ int (*chkit)(char *, char *, long, int))
{
struct fstab *fsp;
struct disk *dk, *nextdisk;
@@ -201,8 +197,7 @@ checkfstab(preen, maxrun, docheck, chkit)
}
static struct disk *
-finddisk(name)
- char *name;
+finddisk(char *name)
{
struct disk *dk, **dkp;
char *p;
@@ -239,9 +234,7 @@ finddisk(name)
}
static void
-addpart(name, fsname, auxdata)
- char *name, *fsname;
- long auxdata;
+addpart(char *name, char *fsname, long auxdata)
{
struct disk *dk = finddisk(name);
struct part *pt, **ppt = &dk->part;
@@ -271,9 +264,7 @@ addpart(name, fsname, auxdata)
}
static int
-startdisk(dk, checkit)
- struct disk *dk;
- int (*checkit)(char *, char *, long, int);
+startdisk(struct disk *dk, int (*checkit)(char *, char *, long, int))
{
struct part *pt = dk->part;