mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -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
|
|
@ -1052,9 +1052,9 @@ impl_new_client(struct pw_protocol *protocol,
|
|||
|
||||
pw_log_debug(NAME" %p: connect %s", protocol, str);
|
||||
|
||||
if (!strcmp(str, "screencast"))
|
||||
if (spa_streq(str, "screencast"))
|
||||
this->connect = pw_protocol_native_connect_portal_screencast;
|
||||
else if (!strcmp(str, "internal"))
|
||||
else if (spa_streq(str, "internal"))
|
||||
this->connect = pw_protocol_native_connect_internal;
|
||||
else
|
||||
this->connect = pw_protocol_native_connect_local_socket;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -3780,7 +3780,7 @@ static int fill_card_info(struct client *client, struct message *m,
|
|||
module_id = (uint32_t)atoi(str);
|
||||
|
||||
drv_name = spa_dict_lookup(info->props, PW_KEY_DEVICE_API);
|
||||
if (drv_name && !strcmp("bluez5", drv_name))
|
||||
if (drv_name && spa_streq("bluez5", drv_name))
|
||||
drv_name = "module-bluez5-device.c"; /* blueman needs this */
|
||||
|
||||
message_put(m,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue