diff options
author | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-10-17 21:37:37 +0000 |
---|---|---|
committer | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-10-17 21:37:37 +0000 |
commit | 57d112ecdd6c39f44ee3295b43b7c667db73b7f8 (patch) | |
tree | 91b5e2fb40f50c91d0b0a3c4ff4a326560fbef2c | |
parent | c2eb7ceba05f8688c959e76d6469fe2c98806751 (diff) |
add missing option to usage; while here, minor KNF tweak.
-rw-r--r-- | games/banner/banner.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/games/banner/banner.c b/games/banner/banner.c index 929ff748c77..0970faaa71c 100644 --- a/games/banner/banner.c +++ b/games/banner/banner.c @@ -1,4 +1,4 @@ -/* $OpenBSD: banner.c,v 1.14 2007/08/23 06:11:00 ray Exp $ */ +/* $OpenBSD: banner.c,v 1.15 2009/10/17 21:37:36 sobrado Exp $ */ /* $NetBSD: banner.c,v 1.4 1995/04/22 11:55:15 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)banner.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: banner.c,v 1.14 2007/08/23 06:11:00 ray Exp $"; +static char rcsid[] = "$OpenBSD: banner.c,v 1.15 2009/10/17 21:37:36 sobrado Exp $"; #endif #endif /* not lint */ @@ -1046,7 +1046,8 @@ main(int argc, char *argv[]) break; case '?': case 'h': default: - (void)fprintf(stderr, "usage: banner [-w width]\n"); + (void)fprintf(stderr, + "usage: banner [-w width] message ...\n"); exit(1); } argc -= optind; @@ -1103,7 +1104,7 @@ main(int argc, char *argv[]) if ((u_char) message[i] >= NCHARS || asc_ptr[(u_char) message[i]] == 0) { warnx("The character '%c' is not in my character set", - message[i]); + message[i]); j++; } if (j) |