mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
core: Replace assert()s with pa_assert()s
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
59334021d3
commit
101092465d
7 changed files with 11 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue