From c757cb09123d3826ff50f28c938ee07a6904f697 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 9 Aug 2018 15:01:39 +0100 Subject: [PATCH] Remove incorrect comment. --- lib/net_mosq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/net_mosq.c b/lib/net_mosq.c index 946417b5..0b5792a2 100644 --- a/lib/net_mosq.c +++ b/lib/net_mosq.c @@ -636,10 +636,7 @@ int net__socket_connect_step3(struct mosquitto *mosq, const char *host, uint16_t return MOSQ_ERR_SUCCESS; } -/* 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. - */ +/* Create a socket and connect it to 'ip' on port 'port'. */ 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;