1919#include "wsrep_api.h"
2020
2121#include <errno.h>
22- #include <stdbool.h>
2322#include <string.h>
2423
2524/*! Dummy backend context. */
@@ -164,7 +163,7 @@ static wsrep_status_t dummy_append_key(
164163 const wsrep_key_t * key __attribute__((unused )),
165164 const size_t key_num __attribute__((unused )),
166165 const wsrep_key_type_t key_type __attribute__((unused )),
167- const bool copy __attribute__((unused )))
166+ const wsrep_bool_t copy __attribute__((unused )))
168167{
169168 WSREP_DBUG_ENTER (w );
170169 return WSREP_OK ;
@@ -176,7 +175,7 @@ static wsrep_status_t dummy_append_data(
176175 const struct wsrep_buf * data __attribute__((unused )),
177176 const size_t count __attribute__((unused )),
178177 const wsrep_data_type_t type __attribute__((unused )),
179- const bool copy __attribute__((unused )))
178+ const wsrep_bool_t copy __attribute__((unused )))
180179{
181180 WSREP_DBUG_ENTER (w );
182181 return WSREP_OK ;
@@ -319,10 +318,10 @@ static wsrep_status_t dummy_resync (wsrep_t* w)
319318}
320319
321320static wsrep_status_t dummy_lock (wsrep_t * w ,
322- const char * s __attribute__((unused )),
323- bool r __attribute__((unused )),
324- uint64_t o __attribute__((unused )),
325- int64_t t __attribute__((unused )))
321+ const char * s __attribute__((unused )),
322+ wsrep_bool_t r __attribute__((unused )),
323+ uint64_t o __attribute__((unused )),
324+ int64_t t __attribute__((unused )))
326325{
327326 WSREP_DBUG_ENTER (w );
328327 return WSREP_NOT_IMPLEMENTED ;
@@ -336,13 +335,13 @@ static wsrep_status_t dummy_unlock (wsrep_t* w,
336335 return WSREP_OK ;
337336}
338337
339- static bool dummy_is_locked (wsrep_t * w ,
340- const char * s __attribute__((unused )),
341- uint64_t * o __attribute__((unused )),
342- wsrep_uuid_t * t __attribute__((unused )))
338+ static wsrep_bool_t dummy_is_locked (wsrep_t * w ,
339+ const char * s __attribute__((unused )),
340+ uint64_t * o __attribute__((unused )),
341+ wsrep_uuid_t * t __attribute__((unused )))
343342{
344343 WSREP_DBUG_ENTER (w );
345- return false ;
344+ return 0 ;
346345}
347346
348347static wsrep_t dummy_iface = {
0 commit comments