Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chkspeed: improve portability #9562

Closed
wants to merge 1 commit into from

Conversation

monnerat
Copy link
Contributor

@monnerat monnerat commented Sep 21, 2022

The example program chkspeed uses strncasecmp() which is not portable across systems. Replace calls to this function by tests on characters.

The initial motivation for this change is the use of a wrong header file for the function definition, causing compilation messages in C89 mode.

The example program chkspeed uses strncasecmp() which is not portable
across systems. Replace calls to this function by tests on characters.
bagder
bagder approved these changes Sep 21, 2022
@bagder
Copy link
Member

bagder commented Sep 21, 2022

Thanks!

@bagder bagder closed this in c3e634d Sep 21, 2022
@monnerat monnerat deleted the portable-chkspeed branch Sep 21, 2022
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.

None yet

2 participants