summaryrefslogtreecommitdiff
path: root/games/hunt
diff options
context:
space:
mode:
authormestre <mestre@cvs.openbsd.org>2016-03-07 12:07:58 +0000
committermestre <mestre@cvs.openbsd.org>2016-03-07 12:07:58 +0000
commitbc31d3ab9380405749109f50c712a4ff98a7b573 (patch)
tree757450abe6a8a34b28ea9250a9edb99e061a025c /games/hunt
parent6b01e9e6ca0144f4e1dca633ed40522da3b9ff79 (diff)
- 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/hunt')
-rw-r--r--games/hunt/hunt/hunt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/hunt/hunt/hunt.c b/games/hunt/hunt/hunt.c
index 84c3b6265de..dae57951cac 100644
--- a/games/hunt/hunt/hunt.c
+++ b/games/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hunt.c,v 1.20 2016/01/10 14:10:39 mestre Exp $ */
+/* $OpenBSD: hunt.c,v 1.21 2016/03/07 12:07:56 mestre Exp $ */
/* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -141,9 +141,9 @@ main(int ac, char **av)
break;
default:
usage:
- fputs("usage: hunt [-bcfmqSs] [-n name] [-p port] "
- "[-t team] [-w message] [[-h] host]\n",
- stderr);
+ fprintf(stderr, "usage: %s [-bcfmqSs] [-n name] "
+ "[-p port] [-t team] [-w message] [[-h] host]\n",
+ getprogname());
return 1;
}
}