projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ccfe0
)
clang formatting
author
Andrew Bays
<abays@redhat.com>
Wed, 18 Jul 2018 18:23:37 +0000
(14:23 -0400)
committer
Andrew Bays
<abays@redhat.com>
Wed, 18 Jul 2018 18:23:37 +0000
(14:23 -0400)
src/sysevent.c
patch
|
blob
|
history
diff --git
a/src/sysevent.c
b/src/sysevent.c
index
4948b2b
..
e80daac
100644
(file)
--- a/
src/sysevent.c
+++ b/
src/sysevent.c
@@
-400,8
+400,7
@@
static int gen_message_payload(const char *msg, char *sev, int sev_num,
*buf = malloc(strlen((char *)buf2) + 1);
- if (*buf == NULL)
- {
+ if (*buf == NULL) {
ERROR("sysevent plugin: gen_message_payload malloc failed");
goto err;
}
@@
-578,8
+577,7
@@
static int sysevent_init(void) /* {{{ */
ring.maxLen = buffer_length;
ring.buffer = (char **)malloc(buffer_length * sizeof(char *));
- if (ring.buffer == NULL)
- {
+ if (ring.buffer == NULL) {
ERROR("sysevent plugin: sysevent_init malloc failed");
return (-1);
}