Age | Commit message (Collapse) | Author |
|
Caught by printf format attribute for printw(3) in newer curses.
|
|
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.
ok jmc@
|
|
ncurses applications, e.g.:
/usr/games/worms 2>&1 | cat
solve this by only calling pledge(2) after initscr(3) is set and done, or
whatever function that calls it. since pledge(2) is called later now the
promises might be reduced, but this a diff for another day.
found by naddy@ almost a year ago, discussed with him deraadt@ and tb@
ok tb@
|
|
out of bound accesses of arrays, leading to sefaults or bus errors. Verify
that at most one boardspec with lower case letters is given, or error out.
ok millert
|
|
|
|
ok deraadt
|
|
Pull in <time.h> for time()
ok deraadt@
|
|
ok deraadt@
|
|
- 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
|
|
last arguments since "The list of arguments must be terminated by a null
null pointer" of type char *
Suggested by and OK tb@
|
|
OK tb@
|
|
OK 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@
|
|
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h>
lived up until this day so remove it.
Additionally, earlier than that, 18 years ago, random(6) was one of the first
consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but
these days we pull it from stdlib.h, which is already done, so while here
remove dev/rndvar.h also.
"seems comprehensive to me" deraadt@ and OK tb@
|
|
ok mmcc@
|
|
section.
Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore.
OK tb@
|
|
skip mkdict and mkindex for now, they aren't installed anyway.
|
|
Fix redrawing of the challenge cube (-c option) when <esc>word is used.
ok mmcc@
|
|
ok guenther@
|
|
ok guenther@
|
|
ok guenther@
|
|
|
|
are the worst.
ok millert ingo tedu
|
|
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@
|
|
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
feature of the English language, so revert that part of the previous.
Requested by jmc@.
|
|
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.
|
|
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
|
|
as the format and no variable args.
Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied
on numeric conversions when a precision is specified.
ok jung@ millert@ krw@
|
|
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
|
|
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
from Graeme Lee <graeme at omni dot net dot au> on tech@, tweaked by me
while here, actually use the variables denom[12] defined a few lines above
OK millert@
|
|
|
|
|
|
versions that don't display the timer, we always do.
|
|
says there has been a status change to indicate that the tty has
gone away. Prevents spinning on terminal detach. OK pvalchev@
|
|
|
|
|
|
|
|
|
|
add cubes for 5x5 mode based on Boggle Deluxe (aka Big Boggle) as
well as support for the "challenge cube" shipped with some versions
of Boggle. Also Dynamically allocate record keeping structures so
we can deal with large word lists and add a --More-- prompt for
when there are too many wwords found by the computer to fit on the
terminal. OK deraadt@
|
|
ok jmc@
|
|
|
|
|
|
|
|
|
|
tobias@bugol.de. fix written by me
|
|
|
|
|
|
|