From: Andrew Bays Date: Fri, 12 Oct 2018 17:48:47 +0000 (-0400) Subject: clang formatting X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1fd9cef16116b4404525c68ab5291a385537afff;p=collectd.git clang formatting --- diff --git a/src/procevent.c b/src/procevent.c index 78c9182b..924049f5 100644 --- a/src/procevent.c +++ b/src/procevent.c @@ -346,9 +346,8 @@ static int gen_message_payload(int state, int pid, char *process, goto err; if (yajl_gen_string( - g, - (u_char *)(state == 0 ? PROCEVENT_EVENT_SEVERITY_CRITICAL_VALUE - : PROCEVENT_EVENT_SEVERITY_NORMAL_VALUE), + g, (u_char *)(state == 0 ? PROCEVENT_EVENT_SEVERITY_CRITICAL_VALUE + : PROCEVENT_EVENT_SEVERITY_NORMAL_VALUE), strlen((state == 0 ? PROCEVENT_EVENT_SEVERITY_CRITICAL_VALUE : PROCEVENT_EVENT_SEVERITY_NORMAL_VALUE))) != yajl_gen_status_ok) @@ -407,9 +406,8 @@ static int gen_message_payload(int state, int pid, char *process, goto err; if (yajl_gen_string( - g, - (u_char *)(state == 0 ? PROCEVENT_VF_STATUS_CRITICAL_VALUE - : PROCEVENT_VF_STATUS_NORMAL_VALUE), + g, (u_char *)(state == 0 ? PROCEVENT_VF_STATUS_CRITICAL_VALUE + : PROCEVENT_VF_STATUS_NORMAL_VALUE), strlen((state == 0 ? PROCEVENT_VF_STATUS_CRITICAL_VALUE : PROCEVENT_VF_STATUS_NORMAL_VALUE))) != yajl_gen_status_ok)