mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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
This commit is contained in:
parent
ac1387d3cc
commit
ca5874da9b
1 changed files with 5 additions and 6 deletions
|
|
@ -54,7 +54,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
@ -1034,8 +1033,8 @@ int pa__init(pa_core *c, pa_module*m) {
|
||||||
const char *name;
|
const char *name;
|
||||||
int namereg_fail;
|
int namereg_fail;
|
||||||
|
|
||||||
assert(c);
|
pa_assert(c);
|
||||||
assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
||||||
pa_log("Failed to parse module arguments.");
|
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));
|
pa_log("SNDCTL_DSP_GETBLKSIZE: %s", pa_cstrerror(errno));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
assert(frag_size);
|
pa_assert(frag_size > 0);
|
||||||
|
|
||||||
u = pa_xnew0(struct userdata, 1);
|
u = pa_xnew0(struct userdata, 1);
|
||||||
u->core = c;
|
u->core = c;
|
||||||
|
|
@ -1269,8 +1268,8 @@ fail:
|
||||||
void pa__done(pa_core *c, pa_module*m) {
|
void pa__done(pa_core *c, pa_module*m) {
|
||||||
struct userdata *u;
|
struct userdata *u;
|
||||||
|
|
||||||
assert(c);
|
pa_assert(c);
|
||||||
assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
if (!(u = m->userdata))
|
if (!(u = m->userdata))
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue