mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-01-03 11:09:08 -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
|
|
@ -32,6 +32,7 @@
|
|||
#include <spa/support/log-impl.h>
|
||||
#include <spa/support/loop.h>
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/node/node.h>
|
||||
#include <spa/node/utils.h>
|
||||
#include <spa/pod/parser.h>
|
||||
|
|
@ -250,7 +251,7 @@ static void inspect_factory(struct data *data, const struct spa_handle_factory *
|
|||
continue;
|
||||
}
|
||||
|
||||
if (strcmp(info->type, SPA_TYPE_INTERFACE_Node) == 0)
|
||||
if (spa_streq(info->type, SPA_TYPE_INTERFACE_Node))
|
||||
inspect_node(data, interface);
|
||||
else
|
||||
printf("skipping unknown interface\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue