diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-09 18:10:57 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-09 18:10:57 +0200 |
| commit | 5c3a76fc80b8ecf296b58fe775d9f68a4c80d1fa (patch) | |
| tree | 0715b53e91f85369158e6c4fe55be76ebe33fe50 | |
| parent | bfc79cef2cb743fedba3e93fd005d25b0a4923dc (diff) | |
| download | ttdaw-5c3a76fc80b8ecf296b58fe775d9f68a4c80d1fa.tar.gz | |
Clean up of code, removing some unnessesary code
| -rw-r--r-- | main.c | 6 | ||||
| -rw-r--r-- | mutex.c | 1 |
2 files changed, 3 insertions, 4 deletions
@@ -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; } @@ -4,7 +4,6 @@ SharedData shared_data; pthread_mutex_t mutex; -pthread_cond_t cond_midi; pthread_cond_t cond_synth; void initialize_mutex() { |
