]> code.delx.au - pulseaudio/blobdiff - src/tests/lock-autospawn-test.c
Remove pa_bool_t and replace it with bool.
[pulseaudio] / src / tests / lock-autospawn-test.c
index 1aa3bcae2cddf01bce7d9cbed614b47d84edc241..89d402e7ea8989c81f8ec40252e943e368a68d09 100644 (file)
@@ -38,7 +38,7 @@ static void thread_func(void*k) {
 
     pa_log("%i, Trying to acquire lock.", PA_PTR_TO_INT(k));
 
-    fail_unless(pa_autospawn_lock_acquire(TRUE) > 0);
+    fail_unless(pa_autospawn_lock_acquire(true) > 0);
 
     pa_log("%i, Got the lock!, Sleeping for 5s", PA_PTR_TO_INT(k));
 
@@ -48,7 +48,7 @@ static void thread_func(void*k) {
 
     pa_autospawn_lock_release();
 
-    pa_autospawn_lock_done(FALSE);
+    pa_autospawn_lock_done(false);
 }
 
 static void thread_func2(void *k) {
@@ -62,7 +62,7 @@ static void thread_func2(void *k) {
         struct pollfd pollfd;
         int j;
 
-        if ((j = pa_autospawn_lock_acquire(FALSE)) > 0)
+        if ((j = pa_autospawn_lock_acquire(false)) > 0)
             break;
 
         fail_unless(j == 0);
@@ -84,7 +84,7 @@ static void thread_func2(void *k) {
 
     pa_autospawn_lock_release();
 
-    pa_autospawn_lock_done(FALSE);
+    pa_autospawn_lock_done(false);
 }
 
 START_TEST (lockautospawn_test) {