mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -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
|
|
@ -273,7 +273,7 @@ static struct node *alsa_create_node(struct device *device, uint32_t id,
|
|||
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
|
||||
spa_debug_dict(0, info->props);
|
||||
|
||||
if (strcmp(info->type, SPA_TYPE_INTERFACE_Node) != 0) {
|
||||
if (!spa_streq(info->type, SPA_TYPE_INTERFACE_Node)) {
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -959,7 +959,7 @@ static struct device *alsa_create_device(struct impl *impl, uint32_t id,
|
|||
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG))
|
||||
spa_debug_dict(0, info->props);
|
||||
|
||||
if (strcmp(info->type, SPA_TYPE_INTERFACE_Device) != 0) {
|
||||
if (!spa_streq(info->type, SPA_TYPE_INTERFACE_Device)) {
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue