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

lib: Make Curl_gethostname accept a const pointer #5866

Conversation

emilengler
Copy link
Contributor

The address of that variable never gets changed, only the data in it so
why not make it a "char * const"?

The address of that variable never gets changed, only the data in it so
why not make it a "char * const"?

Closes curl#5866
@emilengler emilengler force-pushed the 2020-08-gethostname-name-const-pointer branch from 652fa19 to e3fc954 Compare August 26, 2020 19:42
@bagder
Copy link
Member

bagder commented Aug 27, 2020

Thanks!

@bagder bagder closed this in 616c30a Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants