mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -30,6 +30,8 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
#include <jack/metadata.h>
|
||||
#include <jack/uuid.h>
|
||||
|
||||
|
|
@ -98,7 +100,7 @@ static jack_property_t *find_property(jack_description_t *desc, const char *key)
|
|||
uint32_t i;
|
||||
for (i = 0; i < desc->property_cnt; i++) {
|
||||
jack_property_t *prop = &desc->properties[i];
|
||||
if (strcmp(prop->key, key) == 0)
|
||||
if (spa_streq(prop->key, key))
|
||||
return prop;
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue