The unified diff between revisions [4839c414..] and [6726c07e..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/lsi/midi.c'
# # old_revision [4839c414876f813b3873cc350a8e42d6c01957fc] # new_revision [6726c07e4874e76763555e1476ce427743e8f73c] # # patch "src/lsi/midi.c" # from [ef8ca1f8cfebe145ccee1c650cade074fb21acec] # to [e3bb7d685410a1480daeb5df7105847d3b750cb4] # ============================================================ --- src/lsi/midi.c ef8ca1f8cfebe145ccee1c650cade074fb21acec +++ src/lsi/midi.c e3bb7d685410a1480daeb5df7105847d3b750cb4 @@ -16,7 +16,7 @@ int midi_initialised = 0; seq_event_rec midi_buf; int midi_initialised = 0; -void midi_init(void) +int midi_init(void) { midi_fd = open(PORT, O_NONBLOCK | O_RDONLY, 0); if (midi_fd == -1) { @@ -25,6 +25,7 @@ void midi_init(void) midi_bytes = 0; midi_initialised = 1; vm_register_signal_fd(midi_fd, VM_MIDIQ); + return 1; } void midi_close(void)