diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 20:57:49 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 20:57:49 +0000 |
commit | a4427dae23e3c35be318c623dc1b77ed25e5ed17 (patch) | |
tree | 492506672a4b4988ec44cc136c5edd61ddae0d51 | |
parent | 2a38aa8ed1caf3b13d80e0dfd4de6e7106fc99b6 (diff) | |
download | FreeBSD-src-a4427dae23e3c35be318c623dc1b77ed25e5ed17.zip FreeBSD-src-a4427dae23e3c35be318c623dc1b77ed25e5ed17.tar.gz |
Warns cleanup (just make main return an int).
-rw-r--r-- | usr.bin/getopt/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/getopt/getopt.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/getopt/Makefile b/usr.bin/getopt/Makefile index 01dfa87..06d4a2a 100644 --- a/usr.bin/getopt/Makefile +++ b/usr.bin/getopt/Makefile @@ -2,5 +2,6 @@ # PROG = getopt +WARNS?= 2 .include <bsd.prog.mk> diff --git a/usr.bin/getopt/getopt.c b/usr.bin/getopt/getopt.c index c0d2221..830f63a 100644 --- a/usr.bin/getopt/getopt.c +++ b/usr.bin/getopt/getopt.c @@ -4,6 +4,7 @@ #include <stdlib.h> #include <unistd.h> +int main(argc, argv) int argc; char *argv[]; |