mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
pa_boolize the client config
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2009 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
65a6bff357
commit
e706f7bed7
2 changed files with 7 additions and 8 deletions
|
|
@ -58,10 +58,10 @@ static const pa_client_conf default_conf = {
|
|||
.default_sink = NULL,
|
||||
.default_source = NULL,
|
||||
.default_server = NULL,
|
||||
.autospawn = 0,
|
||||
.disable_shm = 0,
|
||||
.autospawn = FALSE,
|
||||
.disable_shm = FALSE,
|
||||
.cookie_file = NULL,
|
||||
.cookie_valid = 0,
|
||||
.cookie_valid = FALSE,
|
||||
};
|
||||
|
||||
pa_client_conf *pa_client_conf_new(void) {
|
||||
|
|
@ -172,7 +172,7 @@ int pa_client_conf_env(pa_client_conf *c) {
|
|||
int pa_client_conf_load_cookie(pa_client_conf* c) {
|
||||
pa_assert(c);
|
||||
|
||||
c->cookie_valid = 0;
|
||||
c->cookie_valid = FALSE;
|
||||
|
||||
if (!c->cookie_file)
|
||||
return -1;
|
||||
|
|
@ -180,7 +180,6 @@ int pa_client_conf_load_cookie(pa_client_conf* c) {
|
|||
if (pa_authkey_load_auto(c->cookie_file, c->cookie, sizeof(c->cookie)) < 0)
|
||||
return -1;
|
||||
|
||||
c->cookie_valid = 1;
|
||||
c->cookie_valid = TRUE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue