| #
d7259957 |
| 04-Dec-2022 |
cheloha <cheloha@openbsd.org> |
userspace: remove vestigial '?' cases from top-level getopt(3) loops
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument.
userspace: remove vestigial '?' cases from top-level getopt(3) loops
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines.
Prompted by dlg@. With help from dlg@ and millert@.
Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2
ok naddy@ millert@ dlg@
show more ...
|
| #
4fb3143d |
| 15-Sep-2020 |
kevlo <kevlo@openbsd.org> |
Remove igetnext prototype for the function does not exist.
ok deraadt@
|
| #
80e53f5b |
| 28-Jun-2019 |
schwarze <schwarze@openbsd.org> |
Actually, the C standard only guarantees that atexit(3) returns non-zero on error, so tweak previous to test "atexit(...) != 0" for portability. "OK ok ok sorry backwards" deraadt@
|
| #
abcdd362 |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
atexit() returns -1 on failure
|
| #
1497f5f6 |
| 04-Dec-2015 |
jmc <jmc@openbsd.org> |
remove -i from SYNOPSIS and usage();
|
| #
fcee8579 |
| 04-Dec-2015 |
nicm <nicm@openbsd.org> |
cap_mkdb no longer needs to understand terminfo files, so remove -i.
ok tedu millert
|
| #
d22c96fa |
| 29-Oct-2015 |
deraadt <deraadt@openbsd.org> |
Pretty sure this can pledge "stdio rpath wpath cpath". Commiting to start the review for regressions...
|
| #
b9fc9a72 |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
show more ...
|
| #
90c162cc |
| 04-Jul-2011 |
nicm <nicm@openbsd.org> |
Nuke a load of trailing whitespace; no binary change.
|
| #
96d7036f |
| 01-Nov-2009 |
nicm <nicm@openbsd.org> |
If the last name field looks like a description rather than an alias (if it contains spaces), ignore it. Knocks a few K off the termcap and terminfo databases and gets rid of some warnings.
ok mille
If the last name field looks like a description rather than an alias (if it contains spaces), ignore it. Knocks a few K off the termcap and terminfo databases and gets rid of some warnings.
ok millert
show more ...
|
| #
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 ...
|
| #
8c2edd3c |
| 28-Aug-2009 |
nicm <nicm@openbsd.org> |
Change cap_mkdb and curses to be a better about reformatting terminfo entries into the cap database format and back: rather than replacing all colons with commas, only touch real separators (skip tho
Change cap_mkdb and curses to be a better about reformatting terminfo entries into the cap database format and back: rather than replacing all colons with commas, only touch real separators (skip those with a leading \ or ^) and replace an unadorned colon with a literal "\072".
Fixes problems with quite a few caps including acsc in "screen" (:s instead of ,s) and setab/initc in "xterm-256color" (wrongly concatenated together).
ok millert
show more ...
|
| #
0295bab2 |
| 04-Mar-2006 |
otto <otto@openbsd.org> |
Plug a mem leak; ok millert@
|
| #
f7064253 |
| 26-Sep-2003 |
tedu <tedu@openbsd.org> |
better realloc. ok deraadt@
|
| #
61d8763b |
| 21-Sep-2003 |
millert <millert@openbsd.org> |
Replace err(1, "") with err(1, NULL) to avoid a warning; Andrey Matveev
|
| #
1837a5ca |
| 10-Jun-2003 |
deraadt <deraadt@openbsd.org> |
mostly ansi cleanup; pval ok
|
| #
f75387cb |
| 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.
|
| #
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 ...
|
| #
c3e1e82e |
| 12-Jul-2001 |
deraadt <deraadt@openbsd.org> |
first pass at a -Wall cleanup
|
| #
df1be10c |
| 18-Jun-2001 |
millert <millert@openbsd.org> |
use cgetusedb(3)
|
| #
3839cc75 |
| 22-Sep-2000 |
naddy <naddy@openbsd.org> |
- move break from loop on EOF in order to make cap_mkdb not ignore the final record in terminfo mode - while we're here fix indentation, spelling okay millert@
|
| #
4c8ddc3b |
| 09-Jan-2000 |
millert <millert@openbsd.org> |
When storing termcap entry in the .db file, prune out empty entries like :\t: since space may be tight with the 1023 character termcap limit.
|
| #
bd11b910 |
| 05-Mar-1999 |
tholo <tholo@openbsd.org> |
Merge cap_mkdb(1) and info_mkdb(1)
|
| #
72799b18 |
| 15-Jan-1997 |
millert <millert@openbsd.org> |
getopt(3) returns -1 when out of args, not EOF, whee!
|
| #
1258a77d |
| 26-Jun-1996 |
deraadt <deraadt@openbsd.org> |
rcsid
|