From cc9f2944ede11bd9adf2633daab34f12500b8a6d Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 15 Jan 2011 09:43:02 +0000 Subject: [PATCH] MIDI: Fixed unnecessary casts of return values to void, reported in bug #3153076 svn-id: r55248 --- backends/midi/seq.cpp | 4 ++-- backends/midi/timidity.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/midi/seq.cpp b/backends/midi/seq.cpp index c0098742d02..74a92257bc6 100644 --- a/backends/midi/seq.cpp +++ b/backends/midi/seq.cpp @@ -147,7 +147,7 @@ void MidiDriver_SEQ::send(uint32 b) { warning("MidiDriver_SEQ::send: unknown : %08x", (int)b); break; } - (void)write(device, buf, position); + write(device, buf, position); } void MidiDriver_SEQ::sysEx (const byte *msg, uint16 length) { @@ -172,7 +172,7 @@ void MidiDriver_SEQ::sysEx (const byte *msg, uint16 length) { buf[position++] = _device_num; buf[position++] = 0; - (void)write(device, buf, position); + write(device, buf, position); } diff --git a/backends/midi/timidity.cpp b/backends/midi/timidity.cpp index d79a83809f1..f0dd24bcbd5 100644 --- a/backends/midi/timidity.cpp +++ b/backends/midi/timidity.cpp @@ -337,7 +337,7 @@ char *MidiDriver_TIMIDITY::timidity_ctl_command(const char *fmt, ...) { buff[len++] = '\n'; /* write command to control socket */ - (void)write(_control_fd, buff, len); + write(_control_fd, buff, len); } while (1) {