mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
treewide: replace strcmp() != 0 with !spa_streq
This change is only done in source files for now, header files will be done separately.
This commit is contained in:
parent
95a84e797a
commit
522f87d5ea
40 changed files with 83 additions and 79 deletions
|
|
@ -2213,7 +2213,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
if (str == NULL)
|
||||
str = "node";
|
||||
|
||||
if (app && strcmp(app, str) != 0)
|
||||
if (app && !spa_streq(app, str))
|
||||
snprintf(tmp, sizeof(tmp), "%s/%s", app, str);
|
||||
else
|
||||
snprintf(tmp, sizeof(tmp), "%s", str);
|
||||
|
|
@ -2702,7 +2702,7 @@ jack_client_t * jack_client_open (const char *client_name,
|
|||
break;
|
||||
}
|
||||
|
||||
if (strcmp(client->name, client_name) != 0) {
|
||||
if (!spa_streq(client->name, client_name)) {
|
||||
if (status)
|
||||
*status |= JackNameNotUnique;
|
||||
if (options & JackUseExactName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue