From ca5874da9bfc0e8bc5dd4ad6dd41e4add3977828 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 13 Jul 2007 12:10:44 +0000 Subject: [PATCH] Replace a couple of assert()s by pa_assert()s git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1512 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/modules/module-oss.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/modules/module-oss.c b/src/modules/module-oss.c index 249982c..cabdf16 100644 --- a/src/modules/module-oss.c +++ b/src/modules/module-oss.c @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include @@ -1034,8 +1033,8 @@ int pa__init(pa_core *c, pa_module*m) { const char *name; int namereg_fail; - assert(c); - assert(m); + pa_assert(c); + pa_assert(m); if (!(ma = pa_modargs_new(m->argument, valid_modargs))) { pa_log("Failed to parse module arguments."); @@ -1101,7 +1100,7 @@ int pa__init(pa_core *c, pa_module*m) { pa_log("SNDCTL_DSP_GETBLKSIZE: %s", pa_cstrerror(errno)); goto fail; } - assert(frag_size); + pa_assert(frag_size > 0); u = pa_xnew0(struct userdata, 1); u->core = c; @@ -1269,8 +1268,8 @@ fail: void pa__done(pa_core *c, pa_module*m) { struct userdata *u; - assert(c); - assert(m); + pa_assert(c); + pa_assert(m); if (!(u = m->userdata)) return; -- 2.7.4