code style
This commit is contained in:
@@ -472,7 +472,8 @@ MqttHandler::MqttHandler(UserInfo* userInfo, BusHandler* busHandler, MessageMap*
|
|||||||
check(mosquitto_threaded_set(m_mosquitto, true), "threaded_set");
|
check(mosquitto_threaded_set(m_mosquitto, true), "threaded_set");
|
||||||
#endif
|
#endif
|
||||||
#if (LIBMOSQUITTO_VERSION_NUMBER >= 1004001)
|
#if (LIBMOSQUITTO_VERSION_NUMBER >= 1004001)
|
||||||
check(mosquitto_opts_set(m_mosquitto, MOSQ_OPT_PROTOCOL_VERSION, (void*)(&g_version)), "opts_set protocol version");
|
check(mosquitto_opts_set(m_mosquitto, MOSQ_OPT_PROTOCOL_VERSION, reinterpret_cast<void*>(&g_version)),
|
||||||
|
"opts_set protocol version");
|
||||||
#endif
|
#endif
|
||||||
if (g_username || g_password) {
|
if (g_username || g_password) {
|
||||||
if (!g_username) {
|
if (!g_username) {
|
||||||
|
|||||||
Reference in New Issue
Block a user