mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
modules: Use pa_streq instead of strcmp.
This commit is contained in:
parent
e0c16af551
commit
e5954aca8e
19 changed files with 45 additions and 45 deletions
|
|
@ -183,8 +183,8 @@ static void update_rule(struct rule *r) {
|
|||
if ((desktopfiles_dir = opendir(DESKTOPFILEDIR))) {
|
||||
while ((dir = readdir(desktopfiles_dir))) {
|
||||
if (dir->d_type != DT_DIR
|
||||
|| strcmp(dir->d_name, ".") == 0
|
||||
|| strcmp(dir->d_name, "..") == 0)
|
||||
|| pa_streq(dir->d_name, ".")
|
||||
|| pa_streq(dir->d_name, ".."))
|
||||
continue;
|
||||
|
||||
pa_xfree(fn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue