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_msdosfs/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_msdosfs/main.c')
-rw-r--r-- | sbin/fsck_msdosfs/main.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index 3591467..110b360 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -44,11 +44,7 @@ static const char rcsid[] = #include <stdio.h> #include <unistd.h> #include <errno.h> -#if __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include "fsutil.h" #include "ext.h" @@ -58,8 +54,7 @@ int alwaysyes; /* assume "yes" for all questions */ int preen; /* set when preening */ int rdonly; /* device is opened read only (supersedes above) */ -static void usage __P((void)); -int main __P((int, char **)); +static void usage(void) __dead2; static void usage() @@ -68,9 +63,7 @@ usage() } int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { int ret = 0, erg; int ch; @@ -125,14 +118,7 @@ main(argc, argv) /*VARARGS*/ int -#if __STDC__ ask(int def, const char *fmt, ...) -#else -ask(def, fmt, va_alist) - int def; - char *fmt; - va_dcl -#endif { va_list ap; @@ -147,11 +133,7 @@ ask(def, fmt, va_alist) return def; } -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif vsnprintf(prompt, sizeof(prompt), fmt, ap); if (alwaysyes || rdonly) { printf("%s? %s\n", prompt, rdonly ? "no" : "yes"); |