summaryrefslogtreecommitdiffstats
path: root/usr.bin/getopt
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 20:57:49 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 20:57:49 +0000
commita4427dae23e3c35be318c623dc1b77ed25e5ed17 (patch)
tree492506672a4b4988ec44cc136c5edd61ddae0d51 /usr.bin/getopt
parent2a38aa8ed1caf3b13d80e0dfd4de6e7106fc99b6 (diff)
downloadFreeBSD-src-a4427dae23e3c35be318c623dc1b77ed25e5ed17.zip
FreeBSD-src-a4427dae23e3c35be318c623dc1b77ed25e5ed17.tar.gz
Warns cleanup (just make main return an int).
Diffstat (limited to 'usr.bin/getopt')
-rw-r--r--usr.bin/getopt/Makefile1
-rw-r--r--usr.bin/getopt/getopt.c1
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[];
OpenPOWER on IntegriCloud