mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05: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
|
|
@ -223,7 +223,7 @@ static void session_create(void *data, struct sm_object *object)
|
|||
struct impl *impl = data;
|
||||
const struct spa_dict_item *item;
|
||||
|
||||
if (strcmp(object->type, PW_TYPE_INTERFACE_Node) != 0)
|
||||
if (!spa_streq(object->type, PW_TYPE_INTERFACE_Node))
|
||||
return;
|
||||
|
||||
spa_dict_for_each(item, &impl->properties->dict) {
|
||||
|
|
@ -253,7 +253,7 @@ static void session_remove(void *data, struct sm_object *object)
|
|||
struct impl *impl = data;
|
||||
struct default_node *def;
|
||||
|
||||
if (strcmp(object->type, PW_TYPE_INTERFACE_Node) != 0)
|
||||
if (!spa_streq(object->type, PW_TYPE_INTERFACE_Node))
|
||||
return;
|
||||
|
||||
for (def = impl->defaults; def->key != NULL; ++def) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue