From 83b65cc9cbf0024697e5c97a6b51a0415b08d6ea Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 26 May 2001 22:47:58 +0000 Subject: [PATCH] Fix a trivial warning and clamp down with WARNS=2 MFC after: 1 week --- usr.bin/colcrt/Makefile | 3 ++- usr.bin/colcrt/colcrt.c | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/usr.bin/colcrt/Makefile b/usr.bin/colcrt/Makefile index 9bb24b735b8f..47a27e79ca4a 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 diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c index 4b5b525f6ef1..fd1f4a35c6c2 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)