From 244d471f6ba4df112e98e6bfb1c58e8f51969bef Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 10 Oct 1997 09:48:47 +0000 Subject: WARNSify, fixup .Nm usage --- banner/banner.6 | 6 +++--- banner/banner.c | 15 +++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) (limited to 'banner') 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 #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; -- cgit v1.2.3-56-ge451