#
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 ...
|
#
c6528975 |
| 22-Jun-2021 |
jmc <jmc@openbsd.org> |
reduce verbosity of usage(); keep it the same as SYNOPSIS, wrapped at 80w. lowercase for "usage", and add -e, which was missing;
ok kettenis
|
#
252fb110 |
| 07-Jun-2016 |
tedu <tedu@openbsd.org> |
per trending style, add continue to emtpy loop bodies. ok mglocker
|
#
8e1dad3f |
| 20-Nov-2014 |
tedu <tedu@openbsd.org> |
remove sys/file.h includes in favor of fcntl.h where needed. ok deraadt guenther
|
#
e07939eb |
| 12-Nov-2013 |
deraadt <deraadt@openbsd.org> |
add a variety of missing prototypes
|
#
8ddb3e99 |
| 03-Sep-2012 |
okan <okan@openbsd.org> |
- resolve unchecked malloc()'s; prompted by rustyBSD. - first pass at fixing err() and exit() usage. - document that scsi(8) returns 0 or >0.
ok krw@ otto@ (noting this code is barely worth the effo
- resolve unchecked malloc()'s; prompted by rustyBSD. - first pass at fixing err() and exit() usage. - document that scsi(8) returns 0 or >0.
ok krw@ otto@ (noting this code is barely worth the effort...)
show more ...
|
#
d5b07100 |
| 24-Mar-2012 |
jsg <jsg@openbsd.org> |
fix some leaks ok miod@
|
#
8b791dc9 |
| 18-Oct-2007 |
ray <ray@openbsd.org> |
SIGCHLD is not an errno value.
Spotted by deraadt.
|
#
14789241 |
| 28-Apr-2007 |
ray <ray@openbsd.org> |
Copy sendbug's editit().
OK deraadt@.
|
#
6eb3959c |
| 13-Oct-2006 |
cloder <cloder@openbsd.org> |
Fix another potentially unsafe instance of foo[strlen(foo) - 1] = '\0'. OK krw
|
#
719c0cc6 |
| 10-Oct-2006 |
cloder <cloder@openbsd.org> |
fgets(3) returns NULL on error, not 0. No functional change, but it makes the code easier to read. OK deraadt
|
#
81d5a439 |
| 23-Jul-2006 |
dlg <dlg@openbsd.org> |
remove some scsi ioctls, most importantly the ones that can reprobe the bus. supporting these complicates the midlayer unnecessarily.
ok krw@
|
#
888dd059 |
| 13-Nov-2005 |
deraadt <deraadt@openbsd.org> |
missing fclose(); dhill@mindcry.org
|
#
54dea640 |
| 13-Apr-2005 |
deraadt <deraadt@openbsd.org> |
use STD{IN,OUT,ERR}_FILENO
|
#
cf00d3a7 |
| 11-Apr-2005 |
cloder <cloder@openbsd.org> |
Use absolute path for vi. OK deraadt
|
#
89815c80 |
| 11-Apr-2005 |
cloder <cloder@openbsd.org> |
Check for asprintf failure. From Bruno Rohee (thank you).
|
#
290ab849 |
| 09-Apr-2005 |
cloder <cloder@openbsd.org> |
Compile with -ansi by killing an inline
|
#
6c9fc84d |
| 14-Jan-2004 |
otto <otto@openbsd.org> |
Fix printf format string. ok deraadt@
|
#
a6669909 |
| 23-Jul-2003 |
deraadt <deraadt@openbsd.org> |
move junk (bad code, terrible APIs) to the only program that uses it; millert ok
|
#
45e804e6 |
| 06-Jul-2003 |
deraadt <deraadt@openbsd.org> |
protos
|
#
e763ff64 |
| 26-Jun-2003 |
mickey <mickey@openbsd.org> |
use err.h
|
#
8809fabb |
| 11-Jun-2003 |
deraadt <deraadt@openbsd.org> |
ansification
|
#
15f407e7 |
| 13-Mar-2003 |
deraadt <deraadt@openbsd.org> |
more strlcpy; most from Hans-Joerg.Hoexer@yerbouti.franken.de, a bit from me
|
#
37889ee4 |
| 20-Feb-2003 |
millert <millert@openbsd.org> |
Use STDOUT_FILENO; David at phobia dot ms
|
#
a4df0321 |
| 07-Jul-2001 |
deraadt <deraadt@openbsd.org> |
major -Wall cleanup, almost complete
|