mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
d8a9534a9a
commit
7697ed0757
130 changed files with 817 additions and 675 deletions
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
#include "module.h"
|
||||
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
static int module_unload(struct client *client, struct module *module);
|
||||
|
||||
static void on_module_unload(void *obj, void *data, int res, uint32_t id)
|
||||
|
|
@ -231,7 +233,7 @@ static const struct module_info *find_module_info(const char *name)
|
|||
{
|
||||
int i;
|
||||
for (i = 0; module_list[i].name != NULL; i++) {
|
||||
if (strcmp(module_list[i].name, name) == 0)
|
||||
if (spa_streq(module_list[i].name, name))
|
||||
return &module_list[i];
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue