Blame SOURCES/003-feature-set.patch

c563b9
From 0deb5145c336bc4b32766c6f7af259d643af9143 Mon Sep 17 00:00:00 2001
c563b9
From: Chris Lumens <clumens@redhat.com>
c563b9
Date: Wed, 28 Oct 2020 13:56:09 -0400
c563b9
Subject: [PATCH 1/2] Fix: scheduler, tools: Update typing on maint-mode args.
c563b9
c563b9
---
c563b9
 lib/pengine/pe_output.c | 2 +-
c563b9
 tools/crm_mon_curses.c  | 2 +-
c563b9
 2 files changed, 2 insertions(+), 2 deletions(-)
c563b9
c563b9
diff --git a/lib/pengine/pe_output.c b/lib/pengine/pe_output.c
c563b9
index 186be33..d0f96f4 100644
c563b9
--- a/lib/pengine/pe_output.c
c563b9
+++ b/lib/pengine/pe_output.c
c563b9
@@ -686,7 +686,7 @@ pe__cluster_dc_xml(pcmk__output_t *out, va_list args) {
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("maint-mode", "unsigned long long")
c563b9
+PCMK__OUTPUT_ARGS("maint-mode", "unsigned long long int")
c563b9
 int
c563b9
 pe__cluster_maint_mode_text(pcmk__output_t *out, va_list args) {
c563b9
     unsigned long long flags = va_arg(args, unsigned long long);
c563b9
diff --git a/tools/crm_mon_curses.c b/tools/crm_mon_curses.c
c563b9
index 8a08578..9cf28dc 100644
c563b9
--- a/tools/crm_mon_curses.c
c563b9
+++ b/tools/crm_mon_curses.c
c563b9
@@ -365,7 +365,7 @@ stonith_event_console(pcmk__output_t *out, va_list args) {
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("maint-mode", "unsigned long long")
c563b9
+PCMK__OUTPUT_ARGS("maint-mode", "unsigned long long int")
c563b9
 static int
c563b9
 cluster_maint_mode_console(pcmk__output_t *out, va_list args) {
c563b9
     unsigned long long flags = va_arg(args, unsigned long long);
c563b9
-- 
c563b9
1.8.3.1
c563b9
c563b9
c563b9
From 7a61ae2384b0a1653b4a06926b4ec23099ccf292 Mon Sep 17 00:00:00 2001
c563b9
From: Chris Lumens <clumens@redhat.com>
c563b9
Date: Wed, 28 Oct 2020 13:57:51 -0400
c563b9
Subject: [PATCH 2/2] Fix: tools: Update typing on formatted output args in
c563b9
 crmadmin.
c563b9
c563b9
A lot of these are actually taking const char * as an argument, not
c563b9
regular char *.
c563b9
---
c563b9
 tools/crmadmin.c | 62 ++++++++++++++++++++++++++++----------------------------
c563b9
 1 file changed, 31 insertions(+), 31 deletions(-)
c563b9
c563b9
diff --git a/tools/crmadmin.c b/tools/crmadmin.c
c563b9
index b80a31a..e61dbf4 100644
c563b9
--- a/tools/crmadmin.c
c563b9
+++ b/tools/crmadmin.c
c563b9
@@ -167,14 +167,14 @@ command_cb(const gchar *option_name, const gchar *optarg, gpointer data, GError
c563b9
     return TRUE;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("health", "char *", "char *", "char *", "char *")
c563b9
+PCMK__OUTPUT_ARGS("health", "const char *", "const char *", "const char *", "const char *")
c563b9
 static int
c563b9
 health_text(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-    char *sys_from = va_arg(args, char *);
c563b9
-    char *host_from = va_arg(args, char *);
c563b9
-    char *fsa_state = va_arg(args, char *);
c563b9
-    char *result = va_arg(args, char *);
c563b9
+    const char *sys_from = va_arg(args, const char *);
c563b9
+    const char *host_from = va_arg(args, const char *);
c563b9
+    const char *fsa_state = va_arg(args, const char *);
c563b9
+    const char *result = va_arg(args, const char *);
c563b9
 
c563b9
     if (!out->is_quiet(out)) {
c563b9
         out->info(out, "Status of %s@%s: %s (%s)", crm_str(sys_from),
c563b9
@@ -186,14 +186,14 @@ health_text(pcmk__output_t *out, va_list args)
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("health", "char *", "char *", "char *", "char *")
c563b9
+PCMK__OUTPUT_ARGS("health", "const char *", "const char *", "const char *", "const char *")
c563b9
 static int
c563b9
 health_xml(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-    char *sys_from = va_arg(args, char *);
c563b9
-    char *host_from = va_arg(args, char *);
c563b9
-    char *fsa_state = va_arg(args, char *);
c563b9
-    char *result = va_arg(args, char *);
c563b9
+    const char *sys_from = va_arg(args, const char *);
c563b9
+    const char *host_from = va_arg(args, const char *);
c563b9
+    const char *fsa_state = va_arg(args, const char *);
c563b9
+    const char *result = va_arg(args, const char *);
c563b9
 
c563b9
     xmlNodePtr node = pcmk__output_create_xml_node(out, crm_str(sys_from));
c563b9
     xmlSetProp(node, (pcmkXmlStr) "node_name", (pcmkXmlStr) crm_str(host_from));
c563b9
@@ -203,13 +203,13 @@ health_xml(pcmk__output_t *out, va_list args)
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("pacemakerd-health", "char *", "char *", "char *")
c563b9
+PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *", "const char *", "const char *")
c563b9
 static int
c563b9
 pacemakerd_health_text(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-    char *sys_from = va_arg(args, char *);
c563b9
-    char *state = va_arg(args, char *);
c563b9
-    char *last_updated = va_arg(args, char *);
c563b9
+    const char *sys_from = va_arg(args, const char *);
c563b9
+    const char *state = va_arg(args, const char *);
c563b9
+    const char *last_updated = va_arg(args, const char *);
c563b9
 
c563b9
     if (!out->is_quiet(out)) {
c563b9
         out->info(out, "Status of %s: '%s' %s %s", crm_str(sys_from),
c563b9
@@ -222,13 +222,13 @@ pacemakerd_health_text(pcmk__output_t *out, va_list args)
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("pacemakerd-health", "char *", "char *", "char *")
c563b9
+PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *", "const char *", "const char *")
c563b9
 static int
c563b9
 pacemakerd_health_xml(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-    char *sys_from = va_arg(args, char *);
c563b9
-    char *state = va_arg(args, char *);
c563b9
-    char *last_updated = va_arg(args, char *);
c563b9
+    const char *sys_from = va_arg(args, const char *);
c563b9
+    const char *state = va_arg(args, const char *);
c563b9
+    const char *last_updated = va_arg(args, const char *);
c563b9
 
c563b9
 
c563b9
     xmlNodePtr node = pcmk__output_create_xml_node(out, crm_str(sys_from));
c563b9
@@ -238,11 +238,11 @@ pacemakerd_health_xml(pcmk__output_t *out, va_list args)
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("dc", "char *")
c563b9
+PCMK__OUTPUT_ARGS("dc", "const char *")
c563b9
 static int
c563b9
 dc_text(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-    char *dc = va_arg(args, char *);
c563b9
+    const char *dc = va_arg(args, const char *);
c563b9
 
c563b9
     if (!out->is_quiet(out)) {
c563b9
         out->info(out, "Designated Controller is: %s", crm_str(dc));
c563b9
@@ -253,11 +253,11 @@ dc_text(pcmk__output_t *out, va_list args)
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("dc", "char *")
c563b9
+PCMK__OUTPUT_ARGS("dc", "const char *")
c563b9
 static int
c563b9
 dc_xml(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-    char *dc = va_arg(args, char *);
c563b9
+    const char *dc = va_arg(args, const char *);
c563b9
 
c563b9
     xmlNodePtr node = pcmk__output_create_xml_node(out, "dc");
c563b9
     xmlSetProp(node, (pcmkXmlStr) "node_name", (pcmkXmlStr) crm_str(dc));
c563b9
@@ -266,7 +266,7 @@ dc_xml(pcmk__output_t *out, va_list args)
c563b9
 }
c563b9
 
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("crmadmin-node-list", "xmlNode *")
c563b9
+PCMK__OUTPUT_ARGS("crmadmin-node-list", "struct xmlNode *")
c563b9
 static int
c563b9
 crmadmin_node_list(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
@@ -298,13 +298,13 @@ crmadmin_node_list(pcmk__output_t *out, va_list args)
c563b9
     return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("crmadmin-node", "char *", "char *", "char *")
c563b9
+PCMK__OUTPUT_ARGS("crmadmin-node", "const char *", "const char *", "const char *")
c563b9
 static int
c563b9
 crmadmin_node_text(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-        char *type = va_arg(args, char *);
c563b9
-        char *name = va_arg(args, char *);
c563b9
-        char *id = va_arg(args, char *);
c563b9
+        const char *type = va_arg(args, const char *);
c563b9
+        const char *name = va_arg(args, const char *);
c563b9
+        const char *id = va_arg(args, const char *);
c563b9
 
c563b9
         if (BASH_EXPORT) {
c563b9
             out->info(out, "export %s=%s", crm_str(name), crm_str(id));
c563b9
@@ -316,13 +316,13 @@ crmadmin_node_text(pcmk__output_t *out, va_list args)
c563b9
         return pcmk_rc_ok;
c563b9
 }
c563b9
 
c563b9
-PCMK__OUTPUT_ARGS("crmadmin-node", "char *", "char *", "char *")
c563b9
+PCMK__OUTPUT_ARGS("crmadmin-node", "const char *", "const char *", "const char *")
c563b9
 static int
c563b9
 crmadmin_node_xml(pcmk__output_t *out, va_list args)
c563b9
 {
c563b9
-    char *type = va_arg(args, char *);
c563b9
-    char *name = va_arg(args, char *);
c563b9
-    char *id = va_arg(args, char *);
c563b9
+    const char *type = va_arg(args, const char *);
c563b9
+    const char *name = va_arg(args, const char *);
c563b9
+    const char *id = va_arg(args, const char *);
c563b9
 
c563b9
     xmlNodePtr node = pcmk__output_create_xml_node(out, "node");
c563b9
     xmlSetProp(node, (pcmkXmlStr) "type", (pcmkXmlStr) (type ? type : "member"));
c563b9
-- 
c563b9
1.8.3.1
c563b9