projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run clang-format after removing ssnprintf
[collectd.git]
/
src
/
mqtt.c
diff --git
a/src/mqtt.c
b/src/mqtt.c
index
94686b0
..
851866b
100644
(file)
--- a/
src/mqtt.c
+++ b/
src/mqtt.c
@@
-475,8
+475,8
@@
static int format_topic(char *buf, size_t buf_len, data_set_t const *ds,
if ((status < 0) || (((size_t)status) >= buf_len))
return ENOMEM;
if ((status < 0) || (((size_t)status) >= buf_len))
return ENOMEM;
- while((c = strchr(buf, '#')) || (c = strchr(buf, '+'))) {
-
*c = '_';
+ while
((c = strchr(buf, '#')) || (c = strchr(buf, '+'))) {
+ *c = '_';
}
return 0;
}
return 0;
@@
-609,9
+609,10
@@
static int mqtt_config_publisher(oconfig_item_t *ci) {
}
snprintf(cb_name, sizeof(cb_name), "mqtt/%s", conf->name);
}
snprintf(cb_name, sizeof(cb_name), "mqtt/%s", conf->name);
- plugin_register_write(cb_name, mqtt_write, &(user_data_t){
- .data = conf,
- });
+ plugin_register_write(cb_name, mqtt_write,
+ &(user_data_t){
+ .data = conf,
+ });
return 0;
} /* mqtt_config_publisher */
return 0;
} /* mqtt_config_publisher */