From 5c3a76fc80b8ecf296b58fe775d9f68a4c80d1fa Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 9 Oct 2024 18:10:57 +0200 Subject: Clean up of code, removing some unnessesary code --- main.c | 6 +++--- mutex.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 4eb4cf7..1df6ec3 100644 --- a/main.c +++ b/main.c @@ -21,7 +21,7 @@ void help(const char *argv0) { } int main(int argc, char *argv[]) { - const char short_options[] = "lp:s:hv:"; + const char short_options[] = "lp:s:hv"; const struct option long_options[] = { { "list", 0, NULL, 'l' }, { "port", 1, NULL, 'p' }, @@ -63,8 +63,8 @@ int main(int argc, char *argv[]) { } if (port_name == NULL || soundfont_file == NULL) { - fprintf(stdout, "Missing options. Check help.\n\n"); - fprintf(stdout, "Port and soundfile are required fields.\n\n"); + fprintf(stdout, "Missing options. Check help.\n"); + fprintf(stdout, "Port and soundfile are required fields.\n"); return 1; } diff --git a/mutex.c b/mutex.c index 007928d..69841ee 100644 --- a/mutex.c +++ b/mutex.c @@ -4,7 +4,6 @@ SharedData shared_data; pthread_mutex_t mutex; -pthread_cond_t cond_midi; pthread_cond_t cond_synth; void initialize_mutex() { -- cgit v1.2.3