From b268886863c48b66e5af50362872591ba4d9506f Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 3 Dec 2001 20:57:49 +0000 Subject: [PATCH] Warns cleanup (just make main return an int). --- usr.bin/getopt/Makefile | 1 + usr.bin/getopt/getopt.c | 1 + 2 files changed, 2 insertions(+) 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 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 #include +int main(argc, argv) int argc; char *argv[];