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

Iss946 - Change applicable functions arguments from 'char *' to 'const char *' #1006

Merged
merged 4 commits into from
Jun 12, 2020

Conversation

davidBar-On
Copy link
Contributor

  • Version of iperf3 (or development branch, such as master or
    3.1-STABLE) to which this pull request applies:
    Master

  • Issues fixed (if any):
    Const correctness for API calls #946

  • Brief description of code changes (suitable for use as a commit message):
    Changed functions arguments from 'char *' to 'const char *' when applicable, in 'c' and 'h' files. Hopefully all relevant cases were identified. Used test_commands.sh for sanity tests to check that changes did not cause a problem (but did not run full functionality test).

@davidBar-On davidBar-On changed the title Iss946 Iss946 - Change applicable functions arguments from 'char *' to 'const char *' May 23, 2020
Copy link
Contributor

@bmah888 bmah888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request! Going through this now and testing.

Note to self: src/cjson.c and src/cjson.h diffs are just to get these files caught up to the version of cJSON used in recent iperf3. If we merge this PR, those changes go away because they're already on the master codeline.

@bmah888 bmah888 linked an issue Jun 12, 2020 that may be closed by this pull request
Copy link
Contributor

@bmah888 bmah888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I did a bit of cursory testing on my dev/test VMs and everything seems to work as before. I think if there was any breakage, the compilers would have caught it during the build process. Merging this shortly. Thanks again!

@bmah888 bmah888 merged commit 3888e04 into esnet:master Jun 12, 2020
@bmah888 bmah888 self-assigned this Jun 12, 2020
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.

Const correctness for API calls
2 participants