#
d167610c |
| 14-Feb-2020 |
schwarze <schwarze@openbsd.org> |
no need to declare "extern optarg" and "extern optind" when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert
|
#
11785763 |
| 04-Jun-2017 |
fcambus <fcambus@openbsd.org> |
Use proper bool types in fortune(6).
OK tb@, phessler@ (previous version)
|
#
6fa5e1da |
| 07-Mar-2016 |
mestre <mestre@openbsd.org> |
- 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 -? an
- 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
show more ...
|
#
17641e31 |
| 07-Jan-2016 |
tb <tb@openbsd.org> |
Some basic code maintenance in games/
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-decl
Some basic code maintenance in games/
- 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@
show more ...
|
#
bdf3894f |
| 04-Jan-2016 |
mestre <mestre@openbsd.org> |
More headers removal and sorted the remaining alphabetically.
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 ot
More headers removal and sorted the remaining alphabetically.
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@
show more ...
|
#
9ea8ec70 |
| 03-Jan-2016 |
mestre <mestre@openbsd.org> |
About 13 years ago when the idiom srandom(time()), and sometimes srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it.
Additionally, earl
About 13 years ago when the idiom srandom(time()), and sometimes 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@
show more ...
|
#
f0628b46 |
| 25-Dec-2015 |
mestre <mestre@openbsd.org> |
Declare usage() functions as __dead void, if they don't return, on games section.
Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used
Declare usage() functions as __dead void, if they don't return, on games 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@
show more ...
|
#
07f8b41a |
| 24-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Cast ctype functions' argument to unsigned char.
ok guenther@
|
#
8476ff3c |
| 16-Sep-2015 |
tedu <tedu@openbsd.org> |
big blocks need braces for support
|
#
34278d36 |
| 16-Nov-2014 |
guenther <guenther@openbsd.org> |
Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>, and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed
Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>, 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@
show more ...
|
#
68db792b |
| 11-Oct-2014 |
doug <doug@openbsd.org> |
Userland reallocarray() audit.
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
#
66e49541 |
| 29-Aug-2013 |
naddy <naddy@openbsd.org> |
replace srandomdev()+random() with the arc4random*() family tweaks and ok millert@, ok deraadt@
|
#
82ff3630 |
| 22-Aug-2013 |
guenther <guenther@openbsd.org> |
Correct format string mismatches turned up by -Wformat=2
suggestions and ok millert@
|
#
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
show more ...
|
#
a2f41399 |
| 04-Sep-2007 |
hshoexer <hshoexer@openbsd.org> |
Some more simple malloc(n * m) -> calloc(n, m) conversions.
ok deraadt@
|
#
72f78fca |
| 26-Jun-2007 |
moritz <moritz@openbsd.org> |
Set shortest string count to 0 in strfile(8), if there a no strings found and check the number of strings in fortune(6) to prevent empty fortune files to cause division by zero. Fixes PR 5514.
OK mi
Set shortest string count to 0 in strfile(8), if there a no strings found and check the number of strings in fortune(6) to prevent empty fortune files to cause division by zero. Fixes PR 5514.
OK miod@ ray@ deraadt@
show more ...
|
#
a5ca3416 |
| 09-Jul-2004 |
deraadt <deraadt@openbsd.org> |
ansi; khalek@linuxgamers.net
|
#
7a09557b |
| 03-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
42ceebb3 |
| 06-Apr-2003 |
deraadt <deraadt@openbsd.org> |
2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzen already, but he may have later changes to make still.
|
#
ffe3e522 |
| 06-Dec-2002 |
millert <millert@openbsd.org> |
Replace things like srandom(time(NULL)) with srandomdev(3). random(3) good enough for games but we should at least use a decent seed. pjanzen@ OK
|
#
c72b5b24 |
| 16-Feb-2002 |
millert <millert@openbsd.org> |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
show more ...
|
#
39419a24 |
| 30-Mar-2001 |
pjanzen <pjanzen@openbsd.org> |
Add prototypes, de-register, do better error checking, -Wall some, fix strcat() usage, and fix FreeBSD PR 5791
|
#
d0b779f3 |
| 28-Jan-2001 |
niklas <niklas@openbsd.org> |
$OpenBSD$
|
#
b24007ec |
| 23-Jan-2001 |
millert <millert@openbsd.org> |
Remove another useless machine/endian.h include
|
#
fee881f6 |
| 10-Nov-2000 |
provos <provos@openbsd.org> |
seperate -> separate, okay aaron@
|