diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-03-12 13:36:33 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-12 22:09:09 +0100 |
commit | 515f31339cac323d0939b8e9c6c72089fcd7b278 (patch) | |
tree | 1dccf15df19578acfd15196db8ae00934da6c228 /Base/res | |
parent | b5594bf9a2587e76a759e668fb825748d955a405 (diff) | |
download | serenity-515f31339cac323d0939b8e9c6c72089fcd7b278.zip |
LibC: Correctly reset the getopt state on `optind = 1`
The Linux `getopt_long` manpage tells users to reset `optind` to 1 when
scanning the same argument vector or a new argument vector again. This
makes sense, since `optind` denotes the _next_ option to be processed.
The behavior of setting `optind` to 0 doesn't seem to be specified
anywhere, so let's also remove that comment from `unistd.h`.
Diffstat (limited to 'Base/res')
0 files changed, 0 insertions, 0 deletions