summaryrefslogtreecommitdiff
path: root/apps/plugins/midi
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi')
-rw-r--r--apps/plugins/midi/guspat.c2
-rw-r--r--apps/plugins/midi/midifile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c
index 124f779671..5f6ba35110 100644
--- a/apps/plugins/midi/guspat.c
+++ b/apps/plugins/midi/guspat.c
@@ -160,7 +160,7 @@ struct GPatch * gusload(char * filename)
160 160
161 int file = rb->open(filename, O_RDONLY); 161 int file = rb->open(filename, O_RDONLY);
162 162
163 if(file == -1) 163 if(file < 0)
164 { 164 {
165 char message[50]; 165 char message[50];
166 rb->snprintf(message, 50, "Error opening %s", filename); 166 rb->snprintf(message, 50, "Error opening %s", filename);
diff --git a/apps/plugins/midi/midifile.c b/apps/plugins/midi/midifile.c
index 84e8b567bc..b5d9c5b6d1 100644
--- a/apps/plugins/midi/midifile.c
+++ b/apps/plugins/midi/midifile.c
@@ -31,7 +31,7 @@ struct MIDIfile * loadFile(const char * filename)
31 struct MIDIfile * mfload; 31 struct MIDIfile * mfload;
32 int file = rb->open (filename, O_RDONLY); 32 int file = rb->open (filename, O_RDONLY);
33 33
34 if(file==-1) 34 if(file < 0)
35 { 35 {
36 printf("Could not open file"); 36 printf("Could not open file");
37 return NULL; 37 return NULL;