Skip to content

Replace inconsistent getopt declaration with unistd header#58

Open
StefanBruens wants to merge 1 commit intoRTimothyEdwards:masterfrom
StefanBruens:fix_getopt_declaration
Open

Replace inconsistent getopt declaration with unistd header#58
StefanBruens wants to merge 1 commit intoRTimothyEdwards:masterfrom
StefanBruens:fix_getopt_declaration

Conversation

@StefanBruens
Copy link

The getopt() declaration does not match the actual function signature, the parameters are omitted. Use unistd.h as done in other places already.

At least current GCC rightfully complains:
error: too many arguments to function ‘getopt’; expected 0, have 3

The `getopt()` declaration does not match the actual function signature,
the parameters are omitted. Use unistd.h as done in other places already.

At least current GCC rightfully complains:
`error: too many arguments to function ‘getopt’; expected 0, have 3`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant