@@ -41,7 +41,6 @@ xmlNode *the_cib = NULL;
4141 * \internal
4242 * \brief Process a \c PCMK__CIB_REQUEST_ABS_DELETE
4343 *
44- * \param[in] section Ignored
4544 * \param[in] req Ignored
4645 * \param[in] input Ignored
4746 * \param[in] cib Ignored
@@ -52,8 +51,8 @@ xmlNode *the_cib = NULL;
5251 * \note This is unimplemented and simply returns an error.
5352 */
5453int
55- based_process_abs_delete (const char * section , xmlNode * req , xmlNode * input ,
56- xmlNode * * cib , xmlNode * * answer )
54+ based_process_abs_delete (xmlNode * req , xmlNode * input , xmlNode * * cib ,
55+ xmlNode * * answer )
5756{
5857 /* @COMPAT Remove when PCMK__CIB_REQUEST_ABS_DELETE is removed. Note that
5958 * external clients with Pacemaker versions < 3.0.0 can send it.
@@ -62,8 +61,8 @@ based_process_abs_delete(const char *section, xmlNode *req, xmlNode *input,
6261}
6362
6463int
65- based_process_commit_transact (const char * section , xmlNode * req , xmlNode * input ,
66- xmlNode * * cib , xmlNode * * answer )
64+ based_process_commit_transact (xmlNode * req , xmlNode * input , xmlNode * * cib ,
65+ xmlNode * * answer )
6766{
6867 /* On success, our caller will activate *cib locally, trigger a replace
6968 * notification if appropriate, and sync *cib to all nodes. On failure, our
@@ -87,25 +86,25 @@ based_process_commit_transact(const char *section, xmlNode *req, xmlNode *input,
8786}
8887
8988int
90- based_process_is_primary (const char * section , xmlNode * req , xmlNode * input ,
91- xmlNode * * cib , xmlNode * * answer )
89+ based_process_is_primary (xmlNode * req , xmlNode * input , xmlNode * * cib ,
90+ xmlNode * * answer )
9291{
9392 // @COMPAT Pacemaker Remote clients <3.0.0 may send this
9493 return (based_is_primary ? pcmk_rc_ok : EPERM );
9594}
9695
9796// @COMPAT: Remove when PCMK__CIB_REQUEST_NOOP is removed
9897int
99- based_process_noop (const char * section , xmlNode * req , xmlNode * input ,
100- xmlNode * * cib , xmlNode * * answer )
98+ based_process_noop (xmlNode * req , xmlNode * input , xmlNode * * cib ,
99+ xmlNode * * answer )
101100{
102101 * answer = NULL ;
103102 return pcmk_rc_ok ;
104103}
105104
106105int
107- based_process_ping (const char * section , xmlNode * req , xmlNode * input ,
108- xmlNode * * cib , xmlNode * * answer )
106+ based_process_ping (xmlNode * req , xmlNode * input , xmlNode * * cib ,
107+ xmlNode * * answer )
109108{
110109 const char * host = pcmk__xe_get (req , PCMK__XA_SRC );
111110 const char * seq = pcmk__xe_get (req , PCMK__XA_CIB_PING_ID );
@@ -139,8 +138,8 @@ based_process_ping(const char *section, xmlNode *req, xmlNode *input,
139138}
140139
141140int
142- based_process_primary (const char * section , xmlNode * req , xmlNode * input ,
143- xmlNode * * cib , xmlNode * * answer )
141+ based_process_primary (xmlNode * req , xmlNode * input , xmlNode * * cib ,
142+ xmlNode * * answer )
144143{
145144 if (!based_is_primary ) {
146145 pcmk__info ("We are now in R/W mode" );
@@ -154,8 +153,8 @@ based_process_primary(const char *section, xmlNode *req, xmlNode *input,
154153}
155154
156155int
157- based_process_schemas (const char * section , xmlNode * req , xmlNode * input ,
158- xmlNode * * cib , xmlNode * * answer )
156+ based_process_schemas (xmlNode * req , xmlNode * input , xmlNode * * cib ,
157+ xmlNode * * answer )
159158{
160159 xmlNode * wrapper = NULL ;
161160 xmlNode * data = NULL ;
@@ -199,8 +198,8 @@ based_process_schemas(const char *section, xmlNode *req, xmlNode *input,
199198}
200199
201200int
202- based_process_secondary (const char * section , xmlNode * req , xmlNode * input ,
203- xmlNode * * cib , xmlNode * * answer )
201+ based_process_secondary (xmlNode * req , xmlNode * input , xmlNode * * cib ,
202+ xmlNode * * answer )
204203{
205204 if (based_is_primary ) {
206205 pcmk__info ("We are now in R/O mode" );
@@ -214,8 +213,8 @@ based_process_secondary(const char *section, xmlNode *req, xmlNode *input,
214213}
215214
216215int
217- based_process_shutdown (const char * section , xmlNode * req , xmlNode * input ,
218- xmlNode * * cib , xmlNode * * answer )
216+ based_process_shutdown (xmlNode * req , xmlNode * input , xmlNode * * cib ,
217+ xmlNode * * answer )
219218{
220219 const char * host = pcmk__xe_get (req , PCMK__XA_SRC );
221220
@@ -237,15 +236,15 @@ based_process_shutdown(const char *section, xmlNode *req, xmlNode *input,
237236}
238237
239238int
240- based_process_sync (const char * section , xmlNode * req , xmlNode * input ,
241- xmlNode * * cib , xmlNode * * answer )
239+ based_process_sync (xmlNode * req , xmlNode * input , xmlNode * * cib ,
240+ xmlNode * * answer )
242241{
243242 return sync_our_cib (req , true);
244243}
245244
246245int
247- based_process_upgrade (const char * section , xmlNode * req , xmlNode * input ,
248- xmlNode * * cib , xmlNode * * answer )
246+ based_process_upgrade (xmlNode * req , xmlNode * input , xmlNode * * cib ,
247+ xmlNode * * answer )
249248{
250249 int rc = pcmk_rc_ok ;
251250
@@ -257,7 +256,7 @@ based_process_upgrade(const char *section, xmlNode *req, xmlNode *input,
257256 * re-broadcasts the request with PCMK__XA_CIB_SCHEMA_MAX, and each node
258257 * performs the upgrade (and notifies its local clients) here.
259258 */
260- return cib__process_upgrade (section , req , input , cib , answer );
259+ return cib__process_upgrade (req , input , cib , answer );
261260
262261 } else {
263262 xmlNode * scratch = pcmk__xml_copy (NULL , * cib );
0 commit comments