code style

This commit is contained in:
john30
2018-12-26 16:02:53 +01:00
parent caedcc6cb5
commit eb8f63c80e
+2 -1
View File
@@ -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) {