diff options
author | lukem <lukem@NetBSD.org> | 1997-10-10 09:48:47 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-10 09:48:47 +0000 |
commit | 244d471f6ba4df112e98e6bfb1c58e8f51969bef (patch) | |
tree | 15df9d40ff447527922f1764e71b4597d1a02ea4 /banner | |
parent | 8bd47c54fb2306ad476b3e0754e0b657cc20133c (diff) | |
download | bsdgames-darwin-244d471f6ba4df112e98e6bfb1c58e8f51969bef.tar.gz bsdgames-darwin-244d471f6ba4df112e98e6bfb1c58e8f51969bef.tar.zst bsdgames-darwin-244d471f6ba4df112e98e6bfb1c58e8f51969bef.zip |
WARNSify, fixup .Nm usage
Diffstat (limited to 'banner')
-rw-r--r-- | banner/banner.6 | 6 | ||||
-rw-r--r-- | banner/banner.c | 15 |
2 files changed, 12 insertions, 9 deletions
diff --git a/banner/banner.6 b/banner/banner.6 index 6b4fd902..892d8d3b 100644 --- a/banner/banner.6 +++ b/banner/banner.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: banner.6,v 1.8 1997/05/29 01:48:05 cgd Exp $ +.\" $NetBSD: banner.6,v 1.9 1997/10/10 09:48:47 lukem Exp $ .\" .\" Copyright (c) 1980, 1993, 1995 .\" The Regents of the University of California. All rights reserved. @@ -40,11 +40,11 @@ .Nm banner .Nd print large banner on printer .Sh SYNOPSIS -.Nm banner +.Nm .Op Fl w Ar width .Ar message ... .Sh DESCRIPTION -.Nm Banner +.Nm prints a large, high quality banner on the standard output. If the message is omitted, it prompts for and reads one line of its standard input. diff --git a/banner/banner.c b/banner/banner.c index e7fa4148..a696d0bd 100644 --- a/banner/banner.c +++ b/banner/banner.c @@ -1,4 +1,4 @@ -/* $NetBSD: banner.c,v 1.6 1997/03/04 05:48:42 mikel Exp $ */ +/* $NetBSD: banner.c,v 1.7 1997/10/10 09:48:48 lukem Exp $ */ /* * Copyright (c) 1980, 1993, 1994 @@ -33,17 +33,17 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1980, 1993, 1994\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1980, 1993, 1994\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)banner.c 8.4 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$NetBSD: banner.c,v 1.6 1997/03/04 05:48:42 mikel Exp $"; +__RCSID("$NetBSD: banner.c,v 1.7 1997/10/10 09:48:48 lukem Exp $"); #endif #endif /* not lint */ @@ -1029,6 +1029,9 @@ char print[DWIDTH]; int debug, i, j, linen, max, nchars, pc, term, trace, x, y; int width = DWIDTH; /* -w option: scrunch letters to 80 columns */ + +int main __P((int, char *[])); + int main(argc, argv) int argc; @@ -1036,7 +1039,7 @@ main(argc, argv) { int ch; - while ((ch = getopt(argc, argv, "w:td")) != EOF) + while ((ch = getopt(argc, argv, "w:td")) != -1) switch (ch) { case 'd': debug = 1; |