diff options
-rw-r--r-- | src/tests/asyncq-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/asyncq-test.c b/src/tests/asyncq-test.c index 09b20047..0e10ed89 100644 --- a/src/tests/asyncq-test.c +++ b/src/tests/asyncq-test.c @@ -44,7 +44,7 @@ static void producer(void *_q) { pa_asyncq_push(q, PA_UINT_TO_PTR(i+1), 1); } - pa_asyncq_push(q, PA_UINT_TO_PTR(-1), 1); + pa_asyncq_push(q, PA_UINT_TO_PTR(-1), TRUE); printf("pushed end\n"); } @@ -56,7 +56,7 @@ static void consumer(void *_q) { sleep(1); for (i = 0;; i++) { - p = pa_asyncq_pop(q, 1); + p = pa_asyncq_pop(q, TRUE); if (p == PA_UINT_TO_PTR(-1)) break; |