From d5bedbcd98c10ef187f1daa326b32c6f3ba8d3af Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 11 Sep 2007 20:48:33 +0000 Subject: 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 --- src/modules/module-cli.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/module-cli.c') diff --git a/src/modules/module-cli.c b/src/modules/module-cli.c index fd180bc7..84125214 100644 --- a/src/modules/module-cli.c +++ b/src/modules/module-cli.c @@ -26,7 +26,6 @@ #endif #include -#include #include #include @@ -35,6 +34,7 @@ #include #include #include +#include #include "module-cli-symdef.h" @@ -51,8 +51,8 @@ static const char* const valid_modargs[] = { static void eof_and_unload_cb(pa_cli*c, void *userdata) { pa_module *m = userdata; - assert(c); - assert(m); + pa_assert(c); + pa_assert(m); pa_module_unload_request(m); } @@ -60,8 +60,8 @@ static void eof_and_unload_cb(pa_cli*c, void *userdata) { static void eof_and_exit_cb(pa_cli*c, void *userdata) { pa_module *m = userdata; - assert(c); - assert(m); + pa_assert(c); + pa_assert(m); m->core->mainloop->quit(m->core->mainloop, 0); } @@ -71,7 +71,7 @@ int pa__init(pa_module*m) { pa_modargs *ma; int exit_on_eof = 0; - assert(m); + pa_assert(m); if (m->core->running_as_daemon) { pa_log_info("Running as daemon, refusing to load this module."); @@ -113,7 +113,7 @@ fail: } void pa__done(pa_module*m) { - assert(m); + pa_assert(m); if (m->core->running_as_daemon == 0) { pa_cli_free(m->userdata); -- cgit