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

@ -39,6 +39,7 @@
#include <spa/support/plugin.h>
#include <spa/utils/names.h>
#include <spa/utils/result.h>
#include <spa/utils/string.h>
#include <spa/support/log-impl.h>
#include <spa/support/loop.h>
#include <spa/node/node.h>
@ -122,7 +123,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));