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_ffs/main.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_ffs/main.c')
-rw-r--r-- | sbin/fsck_ffs/main.c | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 59b09d8..6b25aa0 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -65,16 +65,13 @@ static const char rcsid[] = #include "fsck.h" -static void usage __P((void)); -static int argtoi __P((int flag, char *req, char *str, int base)); -static int checkfilesys __P((char *filesys)); -static struct statfs *getmntpt __P((const char *)); -int main __P((int argc, char *argv[])); +static void usage(void) __dead2; +static int argtoi(int flag, char *req, char *str, int base); +static int checkfilesys(char *filesys); +static struct statfs *getmntpt(const char *); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch; struct rlimit rlimit; @@ -164,10 +161,7 @@ main(argc, argv) } static int -argtoi(flag, req, str, base) - int flag; - char *req, *str; - int base; +argtoi(int flag, char *req, char *str, int base) { char *cp; int ret; @@ -183,8 +177,7 @@ argtoi(flag, req, str, base) */ /* ARGSUSED */ static int -checkfilesys(filesys) - char *filesys; +checkfilesys(char *filesys) { ufs_daddr_t n_ffree, n_bfree; struct ufs_args args; @@ -464,8 +457,7 @@ checkfilesys(filesys) * Get the mount point information for name. */ static struct statfs * -getmntpt(name) - const char *name; +getmntpt(const char *name) { struct stat devstat, mntdevstat; char device[sizeof(_PATH_DEV) - 1 + MNAMELEN]; @@ -502,7 +494,7 @@ getmntpt(name) } static void -usage() +usage(void) { extern char *__progname; |