aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/getopt
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-12-03 20:57:49 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-12-03 20:57:49 +0000
commitb268886863c48b66e5af50362872591ba4d9506f (patch)
tree492506672a4b4988ec44cc136c5edd61ddae0d51 /usr.bin/getopt
parent5748d9ba6f313235f5d4628b0c141e71a51ca5ec (diff)
Warns cleanup (just make main return an int).
Notes
Notes: svn path=/head/; revision=87283
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 01dfa87e2935..06d4a2a62cd5 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 c0d222125f10..830f63a3a34e 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[];