mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
|
|
@ -28,6 +28,7 @@
|
|||
#include <getopt.h>
|
||||
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/utils/defs.h>
|
||||
|
||||
#include <pipewire/pipewire.h>
|
||||
|
|
@ -67,7 +68,7 @@ static int metadata_property(void *data, uint32_t id,
|
|||
struct data *d = data;
|
||||
|
||||
if ((d->opt_id == SPA_ID_INVALID || d->opt_id == id) &&
|
||||
(d->opt_key == NULL || strcmp(d->opt_key, key) == 0)) {
|
||||
(d->opt_key == NULL || spa_streq(d->opt_key, key))) {
|
||||
if (key == NULL) {
|
||||
fprintf(stdout, "remove: id:%u all keys\n", id);
|
||||
} else if (value == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue