diff options
author | 2016-03-07 12:07:55 +0000 | |
---|---|---|
committer | 2016-03-07 12:07:55 +0000 | |
commit | 6fa5e1da3490487b9d3a614457ba0b7c041eb1ac (patch) | |
tree | af9e82e34d5b4e7a5706072e56af61f31d6a768f /games/wump/wump.c | |
parent | boolean_t/FALSE/TRUE -> int/0/1 (diff) | |
download | wireguard-openbsd-6fa5e1da3490487b9d3a614457ba0b7c041eb1ac.tar.xz wireguard-openbsd-6fa5e1da3490487b9d3a614457ba0b7c041eb1ac.zip |
- General changes:
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)
- Specific changes:
- atc(6): this used -? and -u for usage(), remove both from game and manpage
- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h
- hunt(6): replace fputs(3) by fprintf(3)
OK tb@ after his suggestions
Diffstat (limited to 'games/wump/wump.c')
-rw-r--r-- | games/wump/wump.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/games/wump/wump.c b/games/wump/wump.c index 441223a3cc8..e41319af67a 100644 --- a/games/wump/wump.c +++ b/games/wump/wump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wump.c,v 1.32 2016/01/10 13:35:10 mestre Exp $ */ +/* $OpenBSD: wump.c,v 1.33 2016/03/07 12:07:57 mestre Exp $ */ /* * Copyright (c) 1989, 1993 @@ -179,7 +179,6 @@ main(int argc, char *argv[]) errx(1, "wumpii like extra doors in their caves!"); break; - case '?': default: usage(); } @@ -909,8 +908,8 @@ void usage(void) { (void)fprintf(stderr, - "usage: wump [-ho] [-a arrows] [-b bats] [-p pits] " - "[-r rooms] [-t tunnels]\n"); + "usage: %s [-ho] [-a arrows] [-b bats] [-p pits] " + "[-r rooms] [-t tunnels]\n", getprogname()); exit(1); } |