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

Silence Visual C++ warning #518

Closed
wants to merge 1 commit into from
Closed

Conversation

MarcelRaad
Copy link
Member

Visual C++ 2013 complains:
getinfo.c(351): warning C4245: '=' : conversion from 'int' to 'curl_socket_t', signed/unsigned mismatch

Visual C++ 2013 complains:
getinfo.c(351): warning C4245: '=' : conversion from 'int' to 'curl_socket_t', signed/unsigned mismatch
jay added a commit that referenced this pull request Nov 6, 2015
- Set user info param to the socket returned by Curl_getconnectinfo,
regardless of if the socket is bad. Effectively this means the user info
param now will receive CURL_SOCKET_BAD instead of -1 on bad socket.

- Remove incorrect comments.

CURLINFO_ACTIVESOCKET is documented to write CURL_SOCKET_BAD to user
info param but prior to this change it wrote -1.

Bug: #518
Reported-by: Marcel Raad
@jay
Copy link
Member

jay commented Nov 6, 2015

CURLINFO_ACTIVESOCKET is actually documented to return CURL_SOCKET_BAD not -1 if invalid socket. Some of that code is a cut and paste from CURLINFO_LASTSOCKET which does return -1 if invalid. I've cleaned it up in cd3aba1. Thanks

@jay jay closed this Nov 6, 2015
@MarcelRaad
Copy link
Member Author

Thank you!

@MarcelRaad MarcelRaad deleted the patch-3 branch November 6, 2015 07:06
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants