Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | userspace: remove vestigial '?' cases from top-level getopt(3) loops | cheloha | 2022-12-04 | 1 | -2/+1 |
| | | | | | | | | | | | | | 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@ | ||||
* | no need to declare "extern optarg" and "extern optind" | schwarze | 2020-02-14 | 1 | -3/+1 |
| | | | | | | when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert | ||||
* | Fix usage() output and getopt sorting | guenther | 2016-07-13 | 1 | -6/+6 |
| | |||||
* | Fix an oversight that caused the test program to segfault: | schwarze | 2016-05-26 | 1 | -2/+2 |
| | | | | Don't try to calculate strlen(NULL). | ||||
* | support for testing REG_STARTEND together with REG_NOTBOL | schwarze | 2016-05-26 | 1 | -1/+4 |
| | |||||
* | fix format strings, sizeof() does not return an int | otto | 2007-09-12 | 1 | -5/+5 |
| | |||||
* | use strcspn to properly overwrite '\n' in fgets returned buffer | chl | 2007-09-09 | 1 | -2/+2 |
| | | | | ok moritz@ gilles@ | ||||
* | kill bad functions; some sort of ok from marc who is trying to confuse me | deraadt | 2004-02-28 | 1 | -3/+3 |
| | |||||
* | various cleanups; david says results are same | deraadt | 2003-07-31 | 1 | -14/+15 |
| | |||||
* | getopt(3) returns -1 when out of args, not EOF, whee! | millert | 1997-01-15 | 1 | -2/+2 |
| | |||||
* | -Wall madness. | millert | 1996-12-21 | 1 | -3/+6 |
| | |||||
* | initial import of NetBSD tree | deraadt | 1995-10-18 | 1 | -0/+512 |