[pulseaudio-discuss] [PATCH 2/8] tests: change pa_bool_t to bool

Deng Zhengrong dzrongg at gmail.com
Sun Jul 1 08:46:04 PDT 2012


---
 src/tests/interpol-test.c  |   10 +++++-----
 src/tests/resampler-test.c |    2 +-
 src/tests/stripnul.c       |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/tests/interpol-test.c b/src/tests/interpol-test.c
index ad00aca..e9d18f1 100644
--- a/src/tests/interpol-test.c
+++ b/src/tests/interpol-test.c
@@ -41,7 +41,7 @@
 static pa_context *context = NULL;
 static pa_stream *stream = NULL;
 static pa_mainloop_api *mainloop_api = NULL;
-static pa_bool_t playback = TRUE;
+static bool playback = TRUE;
 static pa_usec_t latency = 0;
 
 static void stream_write_cb(pa_stream *p, size_t nbytes, void *userdata) {
@@ -152,7 +152,7 @@ int main(int argc, char *argv[]) {
     struct timeval start, last_info = { 0, 0 };
     pa_usec_t old_t = 0, old_rtc = 0;
 #ifdef CORK
-    pa_bool_t corked = FALSE;
+    bool corked = FALSE;
 #endif
 
     if (!getenv("MAKE_CHECK"))
@@ -180,10 +180,10 @@ int main(int argc, char *argv[]) {
 /*     for (k = 0; k < 2000; k++) */
 /* #endif */
     {
-        pa_bool_t success = FALSE, changed = FALSE;
+        bool success = FALSE, changed = FALSE;
         pa_usec_t t, rtc, d;
         struct timeval now, tv;
-        pa_bool_t playing = FALSE;
+        bool playing = FALSE;
 
         pa_threaded_mainloop_lock(m);
 
@@ -210,7 +210,7 @@ int main(int argc, char *argv[]) {
 
         if (success) {
 #ifdef CORK
-            pa_bool_t cork_now;
+            bool cork_now;
 #endif
             rtc = pa_timeval_diff(&now, &start);
             pa_log_info("%i\t%llu\t%llu\t%llu\t%llu\t%lli\t%u\t%u\t%llu\t%llu\n", k,
diff --git a/src/tests/resampler-test.c b/src/tests/resampler-test.c
index 87681c6..ce93589 100644
--- a/src/tests/resampler-test.c
+++ b/src/tests/resampler-test.c
@@ -302,7 +302,7 @@ int main(int argc, char *argv[]) {
     pa_mempool *pool = NULL;
     pa_sample_spec a, b;
     int ret = 1, c;
-    pa_bool_t all_formats = TRUE;
+    bool all_formats = TRUE;
     pa_resample_method_t method;
     int seconds;
 
diff --git a/src/tests/stripnul.c b/src/tests/stripnul.c
index d677ad2..cbeff41 100644
--- a/src/tests/stripnul.c
+++ b/src/tests/stripnul.c
@@ -31,7 +31,7 @@
 int main(int argc, char *argv[]) {
     FILE *i, *o;
     size_t granularity;
-    pa_bool_t found = FALSE;
+    bool found = FALSE;
     uint8_t *zero;
 
     pa_assert_se(argc >= 2);
-- 
1.7.7.6



More information about the pulseaudio-discuss mailing list