--- src/daemon/dumpmodules.c | 2 +- src/daemon/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/dumpmodules.c b/src/daemon/dumpmodules.c index 009fbe5..6f45e12 100644 --- a/src/daemon/dumpmodules.c +++ b/src/daemon/dumpmodules.c @@ -106,7 +106,7 @@ static int is_preloaded(const char *name) { if ((e = strrchr(buf, '.'))) *e = 0; - if (!strcmp(name, buf)) + if (pa_streq(name, buf)) return 1; } diff --git a/src/daemon/main.c b/src/daemon/main.c index da1e0cf..a67bf06 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -199,7 +199,7 @@ static int change_user(void) { 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); if (pa_make_secure_dir(PA_SYSTEM_RUNTIME_PATH, 0755, pw->pw_uid, gr->gr_gid) < 0) { -- 1.7.4.1