]> xenbits.xensource.com Git - people/iwj/ring3-xl-test.git/commitdiff
Use bool instead of int for boolean return values
authorEuan Harris <euan.harris@citrix.com>
Fri, 19 Jun 2015 10:09:56 +0000 (10:09 +0000)
committerEuan Harris <euan.harris@citrix.com>
Fri, 19 Jun 2015 10:09:56 +0000 (10:09 +0000)
Signed-off-by: Euan Harris <euan.harris@citrix.com>
testcase_runner.c
testcase_runner.h

index c8d0e93b24e495bf7179678e5815b0626b8f1238..5a3e7ffb97260c1543c9ecad8a7d6a3c40217270 100644 (file)
@@ -85,7 +85,7 @@ wait_for_n(struct test *tc, enum event_type mask, int count, struct event *ev)
 /* Wait until an event matching the mask is posted, or count other events
    are posted.  Returns 1 if the matching event is posted, 0 otherwise.
  */
-int wait_until_n(struct test *tc, enum event_type mask, int count,
+bool wait_until_n(struct test *tc, enum event_type mask, int count,
                  struct event *ev)
 {
     while (count--) {
index c830a809a698c752fffd9522c10ae39c896dfe9c..69a3d22f32fedef33060873b3a12a3217f50989f 100644 (file)
@@ -62,8 +62,8 @@ void recv_event(struct test *tc, struct event *ev);
 void wait_for(struct test *tc, enum event_type mask, struct event *ev);
 void wait_for_n(struct test *tc, enum event_type mask, int count,
                 struct event *ev);
-int wait_until_n(struct test *tc, enum event_type mask, int count,
-                 struct event *ev);
+bool wait_until_n(struct test *tc, enum event_type mask, int count,
+                  struct event *ev);
 int send_fd_event(struct test *tc, int fd);
 int send_libxl_callback_event(struct test *tc, int rc);
 int send_libxl_event(struct test *tc, libxl_event_type type);