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
|
|
@ -29,6 +29,7 @@
|
|||
#include <ncurses.h>
|
||||
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/pod/parser.h>
|
||||
#include <spa/debug/pod.h>
|
||||
|
||||
|
|
@ -360,7 +361,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
struct data *d = data;
|
||||
struct pw_proxy *proxy;
|
||||
|
||||
if (strcmp(type, PW_TYPE_INTERFACE_Node) == 0) {
|
||||
if (spa_streq(type, PW_TYPE_INTERFACE_Node)) {
|
||||
struct node *n;
|
||||
const char *str;
|
||||
|
||||
|
|
@ -372,7 +373,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
if ((n = add_node(d, id, str)) == NULL) {
|
||||
pw_log_warn("can add node %u: %m", id);
|
||||
}
|
||||
} else if (strcmp(type, PW_TYPE_INTERFACE_Profiler) == 0) {
|
||||
} else if (spa_streq(type, PW_TYPE_INTERFACE_Profiler)) {
|
||||
if (d->profiler != NULL) {
|
||||
fprintf(stderr, "Ignoring profiler %d: already attached\n", id);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue