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:
Peter Hutterer 2021-05-18 11:43:49 +10:00
parent 95a84e797a
commit 522f87d5ea
40 changed files with 83 additions and 79 deletions

View file

@ -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) {