mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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
|
|
@ -27,6 +27,7 @@
|
|||
#include <getopt.h>
|
||||
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/pod/parser.h>
|
||||
#include <spa/debug/pod.h>
|
||||
|
||||
|
|
@ -143,7 +144,7 @@ static int find_follower(struct data *d, uint32_t id, const char *name)
|
|||
{
|
||||
int i;
|
||||
for (i = 0; i < d->n_followers; i++) {
|
||||
if (d->followers[i].id == id && strcmp(d->followers[i].name, name) == 0)
|
||||
if (d->followers[i].id == id && spa_streq(d->followers[i].name, name))
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue