summaryrefslogtreecommitdiff
path: root/tests/qmidiin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qmidiin.cpp')
-rw-r--r--tests/qmidiin.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/qmidiin.cpp b/tests/qmidiin.cpp
index efdf218..4fed0b9 100644
--- a/tests/qmidiin.cpp
+++ b/tests/qmidiin.cpp
@@ -21,17 +21,17 @@
#endif
bool done;
-static void finish(int ignore){ done = true; }
+static void finish( int ignore ){ done = true; }
-void usage(void) {
+void usage( void ) {
// Error function in case of incorrect command-line
// argument specifications.
std::cout << "\nusage: qmidiin <port>\n";
std::cout << " where port = the device to use (default = 0).\n\n";
- exit(0);
+ exit( 0 );
}
-int main(int argc, char *argv[])
+int main( int argc, char *argv[] )
{
RtMidiIn *midiin = 0;
std::vector<unsigned char> message;
@@ -45,9 +45,9 @@ int main(int argc, char *argv[])
try {
midiin = new RtMidiIn();
}
- catch (RtError &error) {
+ catch ( RtError &error ) {
error.printMessage();
- exit(EXIT_FAILURE);
+ exit( EXIT_FAILURE );
}
// Check available ports vs. specified.
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
try {
midiin->openPort( port );
}
- catch (RtError &error) {
+ catch ( RtError &error ) {
error.printMessage();
goto cleanup;
}