1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games/robots
cheloha d7259957e8 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@
2022-12-04 23:50:45 +00:00
..
extern.c
init_field.c
main.c userspace: remove vestigial '?' cases from top-level getopt(3) loops 2022-12-04 23:50:45 +00:00
make_level.c
Makefile g/c unused robots_roll file. 2019-02-26 07:14:35 +00:00
move_robs.c
move.c
play_level.c
query.c
rnd_pos.c remove unused macro 2017-05-28 21:13:39 +00:00
robots.6 remove some escapes that are unnecessary/harmful. ok jmc schwarze 2017-05-28 22:27:10 +00:00
robots.h
score.c When system calls indicate an error they return -1, not some arbitrary 2019-06-28 13:32:41 +00:00