1 --- pacemaker-Pacemaker-1.1.24/tools/notifyServicelogEvent.c.orig 2020-12-03 16:37:50.000000000 +0100
2 +++ pacemaker-Pacemaker-1.1.24/tools/notifyServicelogEvent.c 2022-02-08 21:46:52.110664895 +0100
4 #include <crm/common/util.h>
7 -typedef enum { STATUS_GREEN = 1, STATUS_YELLOW, STATUS_RED } STATUS;
8 +typedef enum { STATUS_GREEN = 1, STATUS_YELLOW, STATUS_RED } STATUS_T;
10 -const char *status2char(STATUS status);
11 -STATUS event2status(struct sl_event *event);
12 +const char *status2char(STATUS_T status);
13 +STATUS_T event2status(struct sl_event *event);
16 -status2char(STATUS status)
17 +status2char(STATUS_T status)
21 @@ -42,10 +42,10 @@ status2char(STATUS status)
27 event2status(struct sl_event * event)
29 - STATUS status = STATUS_GREEN;
30 + STATUS_T status = STATUS_GREEN;
32 crm_debug("Severity = %d, Disposition = %d", event->severity, event->disposition);
34 @@ -145,7 +145,7 @@ main(int argc, char *argv[])
38 - STATUS status = STATUS_GREEN;
39 + STATUS_T status = STATUS_GREEN;
40 const char *health_component = "#health-ipmi";
41 const char *health_status = NULL;