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

@ -93,11 +93,11 @@ static void registry_event_global(void *data, uint32_t id, uint32_t permissions,
struct data *d = data;
const char *str;
if (strcmp(type, PW_TYPE_INTERFACE_Metadata) != 0)
if (!spa_streq(type, PW_TYPE_INTERFACE_Metadata))
return;
if ((str = spa_dict_lookup(props, PW_KEY_METADATA_NAME)) != NULL &&
strcmp(str, d->opt_name) != 0)
!spa_streq(str, d->opt_name))
return;
if (d->metadata != NULL) {