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
|
|
@ -22,6 +22,8 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
struct extension_sub {
|
||||
const char *name;
|
||||
uint32_t command;
|
||||
|
|
@ -57,7 +59,7 @@ static struct extension *find_extension(uint32_t idx, const char *name)
|
|||
uint32_t i;
|
||||
for (i = 0; i < SPA_N_ELEMENTS(extensions); i++) {
|
||||
if (idx == extensions[i].idx ||
|
||||
(name && strcmp(name, extensions[i].name) == 0))
|
||||
(name && spa_streq(name, extensions[i].name)))
|
||||
return &extensions[i];
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue