diff options
author | imp <imp@FreeBSD.org> | 2002-03-20 22:57:10 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-03-20 22:57:10 +0000 |
commit | 120c3c211a8089f3738404796935729d10069e44 (patch) | |
tree | b0afc6442896204ba707723c961e59b4de37a932 /sbin/fsck/preen.c | |
parent | 90c76cbe1ef31e40c4b9b9cd46731d2716307ef0 (diff) | |
download | FreeBSD-src-120c3c211a8089f3738404796935729d10069e44.zip FreeBSD-src-120c3c211a8089f3738404796935729d10069e44.tar.gz |
o __P removed
o ansi function prototypes
o unifdef -D__STDC__
o __dead2 on usage prototype
o remove now-bogus main prototype
Diffstat (limited to 'sbin/fsck/preen.c')
-rw-r--r-- | sbin/fsck/preen.c | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/sbin/fsck/preen.c b/sbin/fsck/preen.c index ac15385..c26f23b 100644 --- a/sbin/fsck/preen.c +++ b/sbin/fsck/preen.c @@ -79,18 +79,15 @@ TAILQ_HEAD(disk, diskentry) diskh; static int nrun = 0, ndisks = 0; -static struct diskentry *finddisk __P((const char *)); -static void addpart __P((const char *, const char *, const char *)); -static int startdisk __P((struct diskentry *, - int (*)(const char *, const char *, const char *, char *, pid_t *))); -static void printpart __P((void)); +static struct diskentry *finddisk(const char *); +static void addpart(const char *, const char *, const char *); +static int startdisk(struct diskentry *, + int (*)(const char *, const char *, const char *, char *, pid_t *)); +static void printpart(void); int -checkfstab(flags, docheck, checkit) - int flags; - int (*docheck) __P((struct fstab *)); - int (*checkit) __P((const char *, const char *, const char *, char *, - pid_t *)); +checkfstab(int flags, int (*docheck)(struct fstab *), + int (*checkit)(const char *, const char *, const char *, char *, pid_t *)) { struct fstab *fs; struct diskentry *d, *nextdisk; @@ -247,8 +244,7 @@ checkfstab(flags, docheck, checkit) static struct diskentry * -finddisk(name) - const char *name; +finddisk(const char *name) { const char *p; size_t len = 0; @@ -285,7 +281,7 @@ finddisk(name) static void -printpart() +printpart(void) { struct diskentry *d; struct partentry *p; @@ -300,8 +296,7 @@ printpart() static void -addpart(type, devname, mntpt) - const char *type, *devname, *mntpt; +addpart(const char *type, const char *devname, const char *mntpt) { struct diskentry *d = finddisk(devname); struct partentry *p; @@ -322,10 +317,8 @@ addpart(type, devname, mntpt) static int -startdisk(d, checkit) - struct diskentry *d; - int (*checkit) __P((const char *, const char *, const char *, char *, - pid_t *)); +startdisk(struct diskentry *d, int (*checkit)(const char *, const char *, + const char *, char *, pid_t *)) { struct partentry *p = TAILQ_FIRST(&d->d_part); int rv; |