From 22cc641c5a60dbfa89fbadf809ff6b03f802c4c5 Mon Sep 17 00:00:00 2001 From: "Maciej S. Szmigiero" Date: Fri, 1 May 2020 21:08:17 +0200 Subject: [PATCH] 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 --- src/mqtt.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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 */ -- 2.47.2