From: Maciej S. Szmigiero Date: Fri, 1 May 2020 19:08:17 +0000 (+0200) Subject: Fix code style issues in src/mqtt.c X-Git-Tag: collectd-5.12.0~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22cc641c5a60dbfa89fbadf809ff6b03f802c4c5;p=thirdparty%2Fcollectd.git Fix code style issues in src/mqtt.c This is an automated code style fix generated by running "contrib/format.sh src/mqtt.c". No functional change intended. Signed-off-by: Maciej S. Szmigiero --- diff --git a/src/mqtt.c b/src/mqtt.c index adba2b152..01c2ea263 100644 --- a/src/mqtt.c +++ b/src/mqtt.c @@ -458,20 +458,19 @@ static int publish(mqtt_client_conf_t *conf, char const *topic, return -1; } - #if LIBMOSQUITTO_MAJOR == 0 - status = mosquitto_loop(conf->mosq, /* timeout = */ 1000 /* ms */); - #else - status = mosquitto_loop(conf->mosq, - /* timeout[ms] = */ 1000, - /* max_packets = */ 1); - #endif +#if LIBMOSQUITTO_MAJOR == 0 + status = mosquitto_loop(conf->mosq, /* timeout = */ 1000 /* ms */); +#else + status = mosquitto_loop(conf->mosq, + /* timeout[ms] = */ 1000, + /* max_packets = */ 1); +#endif if (status != MOSQ_ERR_SUCCESS) { c_complain(LOG_ERR, &conf->complaint_cantpublish, "mqtt plugin: mosquitto_loop failed: %s", - (status == MOSQ_ERR_ERRNO) - ? STRERRNO - : mosquitto_strerror(status)); + (status == MOSQ_ERR_ERRNO) ? STRERRNO + : mosquitto_strerror(status)); /* Mark our connection "down" regardless of the error as a safety * measure; we will try to reconnect the next time we have to publish a * message */