From: Andrew Bays Date: Wed, 18 Jul 2018 18:23:37 +0000 (-0400) Subject: clang formatting X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b131b48a77ac2809bab4da331ce151e07495961b;p=collectd.git clang formatting --- diff --git a/src/sysevent.c b/src/sysevent.c index 4948b2b8..e80daacf 100644 --- 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); }