summaryrefslogtreecommitdiffstats
path: root/usr.bin/colcrt
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-05-26 22:47:58 +0000
committerkris <kris@FreeBSD.org>2001-05-26 22:47:58 +0000
commit338a0b8095b5bfceeb1b67f28b6308afa4b448af (patch)
tree977ecce1ba416a95b514ea2eb877056f987fea9f /usr.bin/colcrt
parent98b6fe6f088a900fab1f1f3b1a7c35e81f00cbd5 (diff)
downloadFreeBSD-src-338a0b8095b5bfceeb1b67f28b6308afa4b448af.zip
FreeBSD-src-338a0b8095b5bfceeb1b67f28b6308afa4b448af.tar.gz
Fix a trivial warning and clamp down with WARNS=2
MFC after: 1 week
Diffstat (limited to 'usr.bin/colcrt')
-rw-r--r--usr.bin/colcrt/Makefile3
-rw-r--r--usr.bin/colcrt/colcrt.c9
2 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/colcrt/Makefile b/usr.bin/colcrt/Makefile
index 9bb24b7..47a27e7 100644
--- a/usr.bin/colcrt/Makefile
+++ b/usr.bin/colcrt/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
+# $FreeBSD$
PROG= colcrt
-CFLAGS+=-Wall
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c
index 4b5b525..fd1f4a3 100644
--- a/usr.bin/colcrt/colcrt.c
+++ b/usr.bin/colcrt/colcrt.c
@@ -73,10 +73,11 @@ char printall;
FILE *f;
-static void usage __P((void));
-static void pflush __P((int));
-static int plus __P((char, char));
-static void move __P((int, int));
+int main __P((int, char *[]));
+static void move __P((int, int));
+static void pflush __P((int));
+static int plus __P((char, char));
+static void usage __P((void));
int
main(argc, argv)
OpenPOWER on IntegriCloud