treewide: replace plain strcmp() calls with spa_streq

This commit is contained in:
Peter Hutterer 2021-05-18 13:49:02 +10:00
parent 522f87d5ea
commit 92514d57e4
7 changed files with 17 additions and 13 deletions

View file

@ -48,6 +48,7 @@
#include <spa/param/audio/format-utils.h>
#include <spa/utils/names.h>
#include <spa/utils/result.h>
#include <spa/utils/string.h>
static SPA_LOG_IMPL(default_log);
@ -127,7 +128,7 @@ static int load_handle(struct data *data, struct spa_handle **handle, const char
}
if (factory->version < 1)
continue;
if (strcmp(factory->name, name))
if (!spa_streq(factory->name, name))
continue;
*handle = calloc(1, spa_handle_factory_get_size(factory, NULL));
@ -239,7 +240,7 @@ static int make_node(struct data *data, struct spa_node **node, const char *lib,
}
if (factory->version < 1)
continue;
if (strcmp(factory->name, name))
if (!spa_streq(factory->name, name))
continue;
handle = calloc(1, spa_handle_factory_get_size(factory, NULL));