diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-09-11 20:48:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-09-11 20:48:33 +0000 |
commit | d5bedbcd98c10ef187f1daa326b32c6f3ba8d3af (patch) | |
tree | b7ad2d06169bad49cb4d86d4c2c94473a189a91a /src/pulsecore/flist.c | |
parent | 2988c3d9fbe52ba0429b4962446273bceda391f6 (diff) |
remaining s/assert/pa_assert/ and refcnt.h modernizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1809 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/flist.c')
-rw-r--r-- | src/pulsecore/flist.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pulsecore/flist.c b/src/pulsecore/flist.c index ada0d571..680a9f76 100644 --- a/src/pulsecore/flist.c +++ b/src/pulsecore/flist.c @@ -25,14 +25,14 @@ #include <config.h> #endif -#include <assert.h> +#include <pulse/xmalloc.h> #include <pulsecore/atomic.h> #include <pulsecore/log.h> #include <pulsecore/thread.h> #include <pulsecore/macro.h> #include <pulsecore/core-util.h> -#include <pulse/xmalloc.h> +#include <pulsecore/macro.h> #include "flist.h" @@ -111,7 +111,7 @@ pa_flist *pa_flist_new(unsigned size) { if (!size) size = FLIST_SIZE; - assert(pa_is_power_of_two(size)); + pa_assert(pa_is_power_of_two(size)); l = pa_xmalloc0(PA_ALIGN(sizeof(pa_flist)) + (sizeof(struct cell) * size)); @@ -129,7 +129,7 @@ static int reduce(pa_flist *l, int value) { } void pa_flist_free(pa_flist *l, pa_free_cb_t free_cb) { - assert(l); + pa_assert(l); if (free_cb) { struct cell *cells; @@ -156,8 +156,8 @@ int pa_flist_push(pa_flist*l, void *p) { int idx, len, n; struct cell *cells; - assert(l); - assert(p); + pa_assert(l); + pa_assert(p); cells = PA_FLIST_CELLS(l); @@ -196,7 +196,7 @@ void* pa_flist_pop(pa_flist*l) { int idx, len, n; struct cell *cells; - assert(l); + pa_assert(l); cells = PA_FLIST_CELLS(l); |