From 22f901a57c1958698d9cecf2b40a9fc0fd04f786 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 25 Apr 1999 22:37:58 +0000 Subject: More egcs warning fixes: o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr --- usr.bin/colcrt/colcrt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/colcrt') diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c index e6dc445..c165177 100644 --- a/usr.bin/colcrt/colcrt.c +++ b/usr.bin/colcrt/colcrt.c @@ -80,8 +80,8 @@ main(argc, argv) int argc; char *argv[]; { - register c; - register char *cp, *dp; + int c; + char *cp, *dp; argc--; argv++; -- cgit v1.1