]> git.pld-linux.org Git - packages/pacemaker.git/blob - pacemaker-update.patch
noarch doc
[packages/pacemaker.git] / pacemaker-update.patch
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
3 @@ -23,13 +23,13 @@
4  #include <crm/common/util.h>
5  #include <crm/attrd.h>
6  
7 -typedef enum { STATUS_GREEN = 1, STATUS_YELLOW, STATUS_RED } STATUS;
8 +typedef enum { STATUS_GREEN = 1, STATUS_YELLOW, STATUS_RED } STATUS_T;
9  
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);
14  
15  const char *
16 -status2char(STATUS status)
17 +status2char(STATUS_T status)
18  {
19      switch (status) {
20          default:
21 @@ -42,10 +42,10 @@ status2char(STATUS status)
22      }
23  }
24  
25 -STATUS
26 +STATUS_T
27  event2status(struct sl_event * event)
28  {
29 -    STATUS status = STATUS_GREEN;
30 +    STATUS_T status = STATUS_GREEN;
31  
32      crm_debug("Severity = %d, Disposition = %d", event->severity, event->disposition);
33  
34 @@ -145,7 +145,7 @@ main(int argc, char *argv[])
35      }
36  
37      if (rc == 0) {
38 -        STATUS status = STATUS_GREEN;
39 +        STATUS_T status = STATUS_GREEN;
40          const char *health_component = "#health-ipmi";
41          const char *health_status = NULL;
42  
This page took 0.040582 seconds and 3 git commands to generate.