mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
treewide: replace !strcmp() 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
7697ed0757
commit
95a84e797a
28 changed files with 239 additions and 221 deletions
|
|
@ -51,7 +51,7 @@ uint32_t pw_protocol_native0_find_type(struct pw_impl_client *client, const char
|
|||
{
|
||||
uint32_t i;
|
||||
for (i = 0; i < SPA_N_ELEMENTS(type_map); i++) {
|
||||
if (!strcmp(type_map[i].type, type))
|
||||
if (spa_streq(type_map[i].type, type))
|
||||
return i;
|
||||
}
|
||||
return SPA_ID_INVALID;
|
||||
|
|
@ -361,7 +361,7 @@ uint32_t pw_protocol_native0_name_to_v2(struct pw_impl_client *client, const cha
|
|||
uint32_t i;
|
||||
/* match name to type table and return index */
|
||||
for (i = 0; i < SPA_N_ELEMENTS(type_map); i++) {
|
||||
if (type_map[i].name != NULL && !strcmp(type_map[i].name, name))
|
||||
if (type_map[i].name != NULL && spa_streq(type_map[i].name, name))
|
||||
return i;
|
||||
}
|
||||
return SPA_ID_INVALID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue