mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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
|
|
@ -30,6 +30,7 @@
|
|||
#include <time.h>
|
||||
|
||||
#include <spa/utils/names.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/support/plugin.h>
|
||||
#include <spa/param/param.h>
|
||||
#include <spa/param/audio/format.h>
|
||||
|
|
@ -59,7 +60,7 @@ static const struct spa_handle_factory *find_factory(const char *name)
|
|||
const struct spa_handle_factory *factory;
|
||||
|
||||
while (spa_handle_factory_enum(&factory, &index) == 1) {
|
||||
if (strcmp(factory->name, name) == 0)
|
||||
if (spa_streq(factory->name, name))
|
||||
return factory;
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue