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
|
|
@ -29,6 +29,8 @@
|
|||
#include <fcntl.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
#include "midifile.h"
|
||||
|
||||
#define DEFAULT_TEMPO 500000 /* 500ms per quarter note (120 BPM) is the default */
|
||||
|
|
@ -263,10 +265,10 @@ midi_file_open(const char *filename, const char *mode, struct midi_file_info *in
|
|||
if (mf == NULL)
|
||||
return NULL;
|
||||
|
||||
if (strcmp(mode, "r") == 0) {
|
||||
if (spa_streq(mode, "r")) {
|
||||
if ((res = open_read(mf, filename, info)) < 0)
|
||||
goto exit_free;
|
||||
} else if (strcmp(mode, "w") == 0) {
|
||||
} else if (spa_streq(mode, "w")) {
|
||||
if ((res = open_write(mf, filename, info)) < 0)
|
||||
goto exit_free;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue