Remove incorrect comment.

This commit is contained in:
Roger A. Light 2018-08-09 15:01:39 +01:00
parent ecb4006f38
commit c757cb0912

View File

@ -636,10 +636,7 @@ int net__socket_connect_step3(struct mosquitto *mosq, const char *host, uint16_t
return MOSQ_ERR_SUCCESS; return MOSQ_ERR_SUCCESS;
} }
/* Create a socket and connect it to 'ip' on port 'port'. /* Create a socket and connect it to 'ip' on port 'port'. */
* Returns -1 on failure (ip is NULL, socket creation/connection error)
* Returns sock number on success.
*/
int net__socket_connect(struct mosquitto *mosq, const char *host, uint16_t port, const char *bind_address, bool blocking) int net__socket_connect(struct mosquitto *mosq, const char *host, uint16_t port, const char *bind_address, bool blocking)
{ {
mosq_sock_t sock = INVALID_SOCKET; mosq_sock_t sock = INVALID_SOCKET;