mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
daemon: use pa_streq instead of strcmp
This commit is contained in:
parent
41ee562140
commit
8fb63dd6e4
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ static int is_preloaded(const char *name) {
|
||||||
if ((e = strrchr(buf, '.')))
|
if ((e = strrchr(buf, '.')))
|
||||||
*e = 0;
|
*e = 0;
|
||||||
|
|
||||||
if (!strcmp(name, buf))
|
if (pa_streq(name, buf))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ static int change_user(void) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(pw->pw_dir, PA_SYSTEM_RUNTIME_PATH) != 0)
|
if (!pa_streq(pw->pw_dir, PA_SYSTEM_RUNTIME_PATH))
|
||||||
pa_log_warn(_("Home directory of user '%s' is not '%s', ignoring."), PA_SYSTEM_USER, PA_SYSTEM_RUNTIME_PATH);
|
pa_log_warn(_("Home directory of user '%s' is not '%s', ignoring."), PA_SYSTEM_USER, PA_SYSTEM_RUNTIME_PATH);
|
||||||
|
|
||||||
if (pa_make_secure_dir(PA_SYSTEM_RUNTIME_PATH, 0755, pw->pw_uid, gr->gr_gid) < 0) {
|
if (pa_make_secure_dir(PA_SYSTEM_RUNTIME_PATH, 0755, pw->pw_uid, gr->gr_gid) < 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue