mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Remove pa_bool_t and replace it with bool.
commands used for this (executed from the pulseaudio/src directory):
find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \
-a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \
-a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \
-exec sed -i -e 's/\bpa_bool_t\b/bool/g' \
-e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \;
and:
sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \
-e '181,194!s/\bTRUE\b/true/' -e \
'181,194!s/\bFALSE\b/false/' pulsecore/macro.h
This commit is contained in:
parent
e9822bfcb0
commit
d806b19714
288 changed files with 3360 additions and 3360 deletions
|
|
@ -169,7 +169,7 @@
|
|||
# error "Broken build system"
|
||||
#endif
|
||||
|
||||
PA_MODULE_LOAD_ONCE(FALSE);
|
||||
PA_MODULE_LOAD_ONCE(false);
|
||||
PA_MODULE_AUTHOR("Lennart Poettering");
|
||||
PA_MODULE_VERSION(PACKAGE_VERSION);
|
||||
|
||||
|
|
@ -239,7 +239,7 @@ int pa__init(pa_module*m) {
|
|||
|
||||
#if defined(USE_TCP_SOCKETS)
|
||||
uint32_t port = IPV4_PORT;
|
||||
pa_bool_t port_fallback = TRUE;
|
||||
bool port_fallback = true;
|
||||
const char *listen_on;
|
||||
#else
|
||||
int r;
|
||||
|
|
@ -289,7 +289,7 @@ int pa__init(pa_module*m) {
|
|||
#if defined(USE_TCP_SOCKETS)
|
||||
|
||||
if (pa_in_system_mode() || pa_modargs_get_value(ma, "port", NULL))
|
||||
port_fallback = FALSE;
|
||||
port_fallback = false;
|
||||
|
||||
if (pa_modargs_get_value_u32(ma, "port", &port) < 0 || port < 1 || port > 0xFFFF) {
|
||||
pa_log("port= expects a numerical argument between 1 and 65535.");
|
||||
|
|
@ -337,7 +337,7 @@ int pa__init(pa_module*m) {
|
|||
/* This socket doesn't reside in our own runtime dir but in
|
||||
* /tmp/.esd/, hence we have to create the dir first */
|
||||
|
||||
if (pa_make_secure_parent_dir(u->socket_path, pa_in_system_mode() ? 0755U : 0700U, (uid_t)-1, (gid_t)-1, FALSE) < 0) {
|
||||
if (pa_make_secure_parent_dir(u->socket_path, pa_in_system_mode() ? 0755U : 0700U, (uid_t)-1, (gid_t)-1, false) < 0) {
|
||||
pa_log("Failed to create socket directory '%s': %s\n", u->socket_path, pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue