clang formatting
authorAndrew Bays <andrew.bays@gmail.com>
Fri, 12 Oct 2018 17:48:47 +0000 (13:48 -0400)
committerAndrew Bays <andrew.bays@gmail.com>
Fri, 12 Oct 2018 17:48:47 +0000 (13:48 -0400)
src/procevent.c

index 78c9182..924049f 100644 (file)
@@ -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)