summaryrefslogtreecommitdiff
path: root/games/hunt
AgeCommit message (Collapse)Author
2022-02-18Avoid gendered language in man pages when not referring to a specificJonathan Gray
person. Rewrite or use singular they. ok thfr@ sthen@ daniel@ ian@ job@ kmos@ jcs@ ratchov@ phessler@ and others I'm likely missing on an earlier version. feedback tj@, feedback and ok jmc@
2020-02-14no need to declare "extern optarg" and "extern optind"Ingo Schwarze
when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2017-06-15Remove the Installation section and fix a nonexistent path.Michal Mazurek
OK tb@ (fix paths diff) deraadt@
2017-04-08format string is better be literalGleydson Soares
OK deraadt
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2017-01-20In "%.*s" the * takes (int). gcc whines if you try to use the resultKenneth R Westerback
of pointer subtraction without a cast. So cast those expressions to (int). Switch one local variable to the same type as the parameter it is compared to. ok deraadt@ guenther@ beck@
2016-08-27Pull in <sys/select.h> for fd_setPhilip Guenther
ok deraadt@
2016-03-28remove unused variablesCharles Longeau
ok millert@
2016-03-21Instead of creating a socket with socket() or accept() and thenPhilip Guenther
setting the O_NONBLOCK flag on it with fcntl(F_SETFL) afterwards, just pass SOCK_NONBLOCK to socket() or accept4() and get it right to begin with. ok millert@ krw@ beck@ deraadt@ jca@
2016-03-07- General changes:mestre
- 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
2016-01-10Remove needless casts to (char *) NULL. Some were kept, namely for execl(3)mestre
last arguments since "The list of arguments must be terminated by a null null pointer" of type char * Suggested by and OK tb@
2016-01-10As per style(9), remove remaining lint-style comments from games/mestre
OK tb@
2016-01-07ANSIfy hunt(6)mestre
Note: casted 2 args to struct sockaddr * on list.c to shut off compiler warnings, and also changed an int len to socklen_t since recvfrom(2) receives the last argument as the latter. I'm running out of credits, but this was once again with great help and OK from tb@
2016-01-07Headers cleanup and sortingmestre
OK tb@
2016-01-07Some basic code maintenance in games/tb
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time discussed with and ok mestre@
2015-12-26Set as __dead a few more functions, that don't return, on games/mestre
With precious tip, help and also OK from tb@
2015-12-16Use __progname instead of hand-rolled parsing of argv[0].tb
Inspired by similar diffs by tobias@ and millert@. "I like the concept" pjanzen@ ok tedu@
2015-10-24Cast ctype functions' argument to unsigned char.mmcc
ok guenther@
2015-10-24Cast ctype functions' arguments to unsigned char.mmcc
ok guenther@
2015-10-24Cast isprint()'s argument to unsigned char.mmcc
ok guenther@
2015-10-24Cast toupper()'s argument to unsigned char.mmcc
ok guenther@
2015-09-27Delete pointless NOSTRICT commentsPhilip Guenther
2015-09-25Fix -D in the synopsis line:Ingo Schwarze
* Whitespace is allowed between -D and the variable name. * Each -D option only takes one single assignment. * Drop excessive .Sm macro.
2015-08-22remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok ↵Theo de Raadt
millert krw
2014-11-19We don't need no stinkin' non-new-curses code. Also eliminates aKenneth R Westerback
double #include. ok deraadt@ tedu@
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,Philip Guenther
and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed Prefer sizeof(var) over MAXFOO or FOO_MAX ok deraadt@
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-09-28I was mistaken: Nothing's wrong with contractions, they're just a normalIngo Schwarze
feature of the English language, so revert that part of the previous. Requested by jmc@.
2014-09-26Add missing .An macros (found with mandoc -Tlint) andIngo Schwarze
resolve contractions (found with textproc/igor(1)). Work done by Kaspars at Bankovskis dot net during the EuroBSDCon 2014 documentation tutorial. Very minor addition of a few more missing .An macros by myself.
2014-05-25use calloc. from Benjamin BaierTed Unangst
2014-03-23some minor cleanup:Jason McIntyre
- new sentence, new line - no need to quote Sh lines, or Pa args
2014-03-23stop using libwrap. ok deraadtTed Unangst
2013-08-29replace srandomdev()+random() with the arc4random*() familyChristian Weisgerber
tweaks and ok millert@, ok deraadt@
2013-01-17macro fixes;Jason McIntyre
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2009-12-10fix potential bugs spotted by parfaitBob Beck
ok millert@ pjanzen@
2008-10-02zap trailing whitespace;Jason McIntyre
2008-10-02spelling; Dieter RauschenbergerTheo de Raadt
2008-10-02Remove useless setsid() and setpgrp() calls and add -b option toTodd C. Miller
run huntd in the background like a true daemon. OK deraadt@
2008-06-20Fix erroneous variadics. Ok millert@Anders Magnusson
2008-03-17synchronization between usage and synopsis; add some missing "usage:"'sIgor Sobrado
ok jmc@
2007-11-06fix format stringCharles Longeau
ok ray@ gilles@
2007-09-04Some more simple malloc(n * m) -> calloc(n, m) conversions.Hans-Joerg Hoexer
ok deraadt@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-02tidy up synopis and usage(); sort options; from Igor SobradoJason McIntyre
2007-04-02sort options; from Igor SobradoJason McIntyre
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2006-03-27assorted fixes mostly from coverity via netbsd via jasper adriaanse via techTed Unangst
2005-04-21vsnprintf careful handling of -1; ok beckTheo de Raadt