Skip to content

Commit

Permalink
correct mosquitto.h return code documentation
Browse files Browse the repository at this point in the history
We currently erroneously claim that mosquitto_lib_init cannot fail,
while it can fail on Windows, if WSAStartup fails in net__init. Correct
this.

Signed-off-by: Martin Kelly <[email protected]>
  • Loading branch information
Martin Kelly authored and ralight committed May 20, 2020
1 parent 61a50c6 commit d103174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mosquitto.h
Expand Up @@ -202,7 +202,8 @@ libmosq_EXPORT int mosquitto_lib_version(int *major, int *minor, int *revision);
* This function is *not* thread safe.
*
* Returns:
* MOSQ_ERR_SUCCESS - always
* MOSQ_ERR_SUCCESS - on success.
* MOSQ_ERR_UNKNOWN - on Windows, if sockets couldn't be initialized.
*
* See Also:
* <mosquitto_lib_cleanup>, <mosquitto_lib_version>
Expand Down

0 comments on commit d103174

Please sign in to comment.