diff options
Diffstat (limited to 'apps/plugins/midi')
-rw-r--r-- | apps/plugins/midi/guspat.c | 2 | ||||
-rw-r--r-- | apps/plugins/midi/midifile.c | 2 |
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) int file = rb->open(filename, O_RDONLY); - if(file == -1) + if(file < 0) { char message[50]; 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) struct MIDIfile * mfload; int file = rb->open (filename, O_RDONLY); - if(file==-1) + if(file < 0) { printf("Could not open file"); return NULL; |