core: Replace assert()s with pa_assert()s

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
Peter Meerwald 2014-11-09 17:49:54 +01:00
parent 59334021d3
commit 101092465d
7 changed files with 11 additions and 12 deletions

View file

@ -88,7 +88,7 @@ int main(int argc, char* argv[]) {
for (i = 0; i < THREADS_MAX; i++) {
threads[i] = pa_thread_new("test", thread_func, pa_sprintf_malloc("Thread #%i", i+1));
assert(threads[i]);
pa_assert(threads[i]);
}
pa_msleep(60000);

View file

@ -21,7 +21,6 @@
#include <config.h>
#endif
#include <assert.h>
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
@ -56,7 +55,7 @@ int main(int argc, char *argv[]) {
c.index = c.length = 0;
}
assert(c.index < pa_memblock_get_length(c.memblock));
pa_assert(c.index < pa_memblock_get_length(c.memblock));
l = pa_memblock_get_length(c.memblock) - c.index;