terrorsl / sMQTTBroker

Simple MQTT broker
MIT License
70 stars 19 forks source link

Format strings bugfix #42

Closed PBrunot closed 6 months ago

PBrunot commented 6 months ago

Fixing the following warnings:

SMQTT_LOGD("aliveMillis(%d) < currentMillis(%d)", aliveMillis, currentMillis);

format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=]

SMQTT_LOGD("found:%s client size:%d", client->getClientId(), clients.size());

format '%s' expects argument of type 'char*', but argument 6 has type 'const std::string' {aka 'const std::__cxx11::basic_string'} [-Wformat=]