mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -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
|
|
@ -35,6 +35,7 @@
|
|||
#include <spa/utils/hook.h>
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/names.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/utils/type-info.h>
|
||||
#include <spa/param/format.h>
|
||||
#include <spa/param/format-utils.h>
|
||||
|
|
@ -127,7 +128,7 @@ static void node_port_init(void *data, struct pw_impl_port *port)
|
|||
"input" : is_monitor ? "monitor" : "output";
|
||||
|
||||
if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
|
||||
strcmp(str, "UNK") == 0) {
|
||||
spa_streq(str, "UNK")) {
|
||||
snprintf(position, sizeof(position), "%d", pw_impl_port_get_id(port) + 1);
|
||||
str = position;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue