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/quotacheck | |
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/quotacheck')
-rw-r--r-- | sbin/quotacheck/preen.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/sbin/quotacheck/preen.c b/sbin/quotacheck/preen.c index 84ad2a2..371d344 100644 --- a/sbin/quotacheck/preen.c +++ b/sbin/quotacheck/preen.c @@ -69,17 +69,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; @@ -202,8 +198,7 @@ checkfstab(preen, maxrun, docheck, chkit) } static struct disk * -finddisk(name) - char *name; +finddisk(char *name) { struct disk *dk, **dkp; char *p; @@ -240,9 +235,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; @@ -272,9 +265,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; |