projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
16ce118
)
amqp1: clang-format
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 25 Jul 2018 17:22:26 +0000
(
00:22
+0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 25 Jul 2018 17:22:26 +0000
(
00:22
+0700)
src/amqp1.c
patch
|
blob
|
history
diff --git
a/src/amqp1.c
b/src/amqp1.c
index
072598c
..
9a7b5ce
100644
(file)
--- a/
src/amqp1.c
+++ b/
src/amqp1.c
@@
-372,7
+372,7
@@
static int amqp1_notify(notification_t const *n,
}
cd_message_t *cdm = malloc(sizeof(*cdm));
}
cd_message_t *cdm = malloc(sizeof(*cdm));
- if (cdm == NULL
)
{
+ if (cdm == NULL
)
{
ERROR("amqp1 plugin: notify failed");
return -1;
}
ERROR("amqp1 plugin: notify failed");
return -1;
}
@@
-471,11
+471,12
@@
static int amqp1_write(const data_set_t *ds, const value_list_t *vl, /* {{{ */
format_json_initialize((char *)cdm->mbuf.start, &bfill, &bfree);
format_json_value_list((char *)cdm->mbuf.start, &bfill, &bfree, ds, vl,
instance->store_rates);
format_json_initialize((char *)cdm->mbuf.start, &bfill, &bfree);
format_json_value_list((char *)cdm->mbuf.start, &bfill, &bfree, ds, vl,
instance->store_rates);
- status= format_json_finalize((char *)cdm->mbuf.start, &bfill, &bfree);
+ status
= format_json_finalize((char *)cdm->mbuf.start, &bfill, &bfree);
if (status != 0) {
if (status != 0) {
- ERROR("amqp1 plugin: format_json_finalize failed with status %i.", status);
+ ERROR("amqp1 plugin: format_json_finalize failed with status %i.",
+ status);
cd_message_free(cdm);
cd_message_free(cdm);
- return(status);
+ return
(status);
}
cdm->mbuf.size = strlen(cdm->mbuf.start);
if (cdm->mbuf.size >= BUFSIZE) {
}
cdm->mbuf.size = strlen(cdm->mbuf.start);
if (cdm->mbuf.size >= BUFSIZE) {