[pulseaudio-commits] r1512 - /branches/lennart/src/modules/module-oss.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Jul 13 05:10:45 PDT 2007
Author: lennart
Date: Fri Jul 13 14:10:44 2007
New Revision: 1512
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1512&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Replace a couple of assert()s by pa_assert()s
Modified:
branches/lennart/src/modules/module-oss.c
Modified: branches/lennart/src/modules/module-oss.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-oss.c?rev=3D1512&root=3Dpulseaudio&r1=3D1511&r2=3D1512&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/modules/module-oss.c (original)
+++ branches/lennart/src/modules/module-oss.c Fri Jul 13 14:10:44 2007
@@ -54,7 +54,6 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <stdio.h>
-#include <assert.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
@@ -1034,8 +1033,8 @@
const char *name;
int namereg_fail;
=
- assert(c);
- assert(m);
+ pa_assert(c);
+ pa_assert(m);
=
if (!(ma =3D pa_modargs_new(m->argument, valid_modargs))) {
pa_log("Failed to parse module arguments.");
@@ -1101,7 +1100,7 @@
pa_log("SNDCTL_DSP_GETBLKSIZE: %s", pa_cstrerror(errno));
goto fail;
}
- assert(frag_size);
+ pa_assert(frag_size > 0);
=
u =3D pa_xnew0(struct userdata, 1);
u->core =3D c;
@@ -1269,8 +1268,8 @@
void pa__done(pa_core *c, pa_module*m) {
struct userdata *u;
=
- assert(c);
- assert(m);
+ pa_assert(c);
+ pa_assert(m);
=
if (!(u =3D m->userdata))
return;
More information about the pulseaudio-commits
mailing list