Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-01-07 | Some 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@ | |||
2016-01-04 | More headers removal and sorted the remaining alphabetically. | mestre | |
Most noticeable that were removed are sys/types.h which will be included from stdlib.h and in turn also brings along sys/cdefs.h. The other one is limits.h that was used with the old idiom (denom * random() / LONG_MAX), although it was only removed were applicable (some files still need that header). OK tb@ | |||
2016-01-03 | About 13 years ago when the idiom srandom(time()), and sometimes | 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@ | |||
2015-12-28 | update the us army democracy excerpt to more closely | Jason McIntyre | |
match the format of the original; from andre smagin | |||
2015-12-28 | andy finkel confimed himself as the originator of the rigged demo quote; | Jason McIntyre | |
from netbsd pr 49451 | |||
2015-12-25 | Declare usage() functions as __dead void, if they don't return, on games ↵ | mestre | |
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@ | |||
2015-11-15 | fix a double space issue in the following, rather wonderful, fortune: | Jason McIntyre | |
On two occasions I have been asked [by members of Parliament!], `Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. -- Charles Babbage | |||
2015-11-10 | another open(path, 0)... | Theo de Raadt | |
2015-11-10 | pledge "stdio rpath" at the top. (Ricardo's 2nd chunk which reduces | Theo de Raadt | |
further is not placed right, so I ignored it for now) from Ricardo Mestre | |||
2015-11-10 | replace open(path, 0) with open(path, O_RDONLY). amazing to still find | Theo de Raadt | |
sloppiness like this. | |||
2015-10-24 | Cast ctype functions' argument to unsigned char. | mmcc | |
ok guenther@ | |||
2015-10-24 | Cast isdigit()'s argument to unsigned char. | mmcc | |
ok guenther@ | |||
2015-09-25 | use | rather than / for alternatives and some macro fixes | Ingo Schwarze | |
2015-09-16 | big blocks need braces for support | Ted Unangst | |
2015-08-26 | remove #ifdef OK_TO_WRITE_DISK which isn't used by default. | Sebastien Marie | |
and few disambiguisations suggested by cc(1) - parentheses around && within || - explicit braces to avoid ambiguous 'else' ok doug@ | |||
2015-04-04 | from snj, netbsd -r1.56: "properly pluralize" | Jason McIntyre | |
2015-03-25 | Fix double word in quote from Ken Olsen. | Jeremie Courreges-Anglas | |
"There is no reason for any individual to have a computer in their home." | |||
2015-02-06 | Fix small typo found when testing tedu@'s fortune -o -m change. | Kent R. Spillner | |
ok jmc@ | |||
2015-02-06 | unsigned char is the correct type for ctype functions | Ted Unangst | |
2015-02-06 | no space after # | Ted Unangst | |
2015-02-06 | remove TRUE/FALSE in favor of the true boolean values 1/0 | Ted Unangst | |
2015-02-06 | Debug, whatever it's worth, is clearly not a boolean | Ted Unangst | |
2015-02-06 | cleanup a few bits | Ted Unangst | |
2015-02-06 | remove no regex ifdef. everybody loves regex. | Ted Unangst | |
2015-02-06 | use regcomp native case insensitive matching facility instead of | Ted Unangst | |
faking it poorly | |||
2015-02-06 | don't set a flag with ++; it's a bool, not a counter. | Ted Unangst | |
2015-02-06 | change int to size_t to avoid integer overflow | Ted Unangst | |
2015-02-06 | fix searching and display of offensive fortunes. | Ted Unangst | |
now, if you want to find an offensive fortune about (e.g.) meat, you can simply run: $ fortune -o -m meat This is much easier than the previous requirement to run a command like: $ fortune -o -m `echo meat | rot13` | rot13 requested by guenther phessler | |||
2015-02-06 | regex are documented in re_format.7, not the C API in regex.3 | Ted Unangst | |
2014-12-07 | removing the "rigged demo" quote, as it's also present in fortunes (1) file; | Jason McIntyre | |
2014-11-16 | Eliminate 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-11 | Userland 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-07-01 | Fix typo in Hoare quote | Philip Guenther | |
2014-03-30 | typo fix From: Josh Grosse; | Jason McIntyre | |
2014-02-16 | malcolm macdougall, not dacdougall; | Jason McIntyre | |
From: Joe Marcus Clarke | |||
2014-01-11 | optarg/optind are declared in <unistd.h>, so kill the externs here | Philip Guenther | |
2013-12-11 | typo fix from gavin atkinson, freebsd -r259189; | Jason McIntyre | |
2013-08-29 | replace srandomdev()+random() with the arc4random*() family | Christian Weisgerber | |
tweaks and ok millert@, ok deraadt@ | |||
2013-08-22 | Correct format string mismatches turned up by -Wformat=2 | Philip Guenther | |
suggestions and ok millert@ | |||
2013-08-14 | no longer any need to quote macro lines with >9 args; | Jason McIntyre | |
From: Jan Stary | |||
2013-05-09 | teenagers from *outer* space ("they blast the flesh off hunmans!"); | Jason McIntyre | |
2013-02-18 | typo fix; from pgoyette, netbsd -r1.15 and -r1.11, respectively; | Jason McIntyre | |
2013-02-10 | typo; fix from patrick keshishian | Jason McIntyre | |
2012-11-24 | grammar fix; from Chris Petrik, freebsd pr 173868 | Jason McIntyre | |
2012-11-17 | pjanzen spotted that my previous commit mistakenly omitted another | Jason McIntyre | |
spelling fix; | |||
2012-11-16 | two spelling fixes; from John-Mark Gurney (freebsd -r243048); | Jason McIntyre | |
2012-06-20 | typo; netbsd -r1.10 | Jason McIntyre | |
2012-05-24 | typos | Miod Vallat | |
2011-12-04 | Fix grammar and spelling in a Latin fortune. | Pascal Stumpf | |
ok jmc@ | |||
2011-11-20 | grammar fix, from jnemeth@netbsd (-r1.48); | Jason McIntyre | |