diff options
author | imp <imp@FreeBSD.org> | 1999-04-25 22:37:58 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-04-25 22:37:58 +0000 |
commit | 22f901a57c1958698d9cecf2b40a9fc0fd04f786 (patch) | |
tree | 4db883c020b4df70cb765924c2f0a2d0680f4620 /usr.bin/tn3270 | |
parent | d12a7ef464b342d4fca0ef83535cf75b401d3f38 (diff) | |
download | FreeBSD-src-22f901a57c1958698d9cecf2b40a9fc0fd04f786.zip FreeBSD-src-22f901a57c1958698d9cecf2b40a9fc0fd04f786.tar.gz |
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
Diffstat (limited to 'usr.bin/tn3270')
-rw-r--r-- | usr.bin/tn3270/tools/mkdctype/mkdctype.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tn3270/tools/mkdctype/mkdctype.c b/usr.bin/tn3270/tools/mkdctype/mkdctype.c index 24ee095..2e69486 100644 --- a/usr.bin/tn3270/tools/mkdctype/mkdctype.c +++ b/usr.bin/tn3270/tools/mkdctype/mkdctype.c @@ -48,7 +48,7 @@ static char sccsid[] = "@(#)mkdctype.c 8.1 (Berkeley) 6/6/93"; extern unsigned char ectype[256]; -void +int main() { static unsigned char dctype[192] = { 0 }; @@ -96,4 +96,5 @@ main() } printf(",\n"); } + return (0); } |