From f1698377e1fb8233e3d2518fce6f954e9d5f03ac Mon Sep 17 00:00:00 2001 From: c vw Date: Wed, 29 Dec 2021 18:41:23 +0100 Subject: [PATCH] some cosmetic changes --- discovery.c | 2 +- midi2.c | 2 +- midi_menu.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/discovery.c b/discovery.c index e24cb04..e2edd70 100644 --- a/discovery.c +++ b/discovery.c @@ -71,7 +71,7 @@ GtkWidget *host_addr_entry; static char host_addr_buffer[128]="g0orx.ddns.net"; char *host_addr = &host_addr_buffer[0]; GtkWidget *host_port_spinner; -gint host_port=45000; +gint host_port=50000; // default listening port #endif // diff --git a/midi2.c b/midi2.c index d052f7f..f436e17 100644 --- a/midi2.c +++ b/midi2.c @@ -301,7 +301,7 @@ static int keyword2action(char *s) { return NO_ACTION; } -int MIDIstartup(char *filename) { +int ReadLegacyMidiFile(char *filename) { FILE *fpin; char zeile[255]; char *cp,*cq; diff --git a/midi_menu.c b/midi_menu.c index 9c08437..3141e93 100644 --- a/midi_menu.c +++ b/midi_menu.c @@ -463,9 +463,9 @@ static void load_original_cb(GtkWidget *widget,gpointer user_data) { if(res==GTK_RESPONSE_ACCEPT) { char *loadfilename=gtk_file_chooser_get_filename(chooser); clear_cb(NULL,NULL); - MIDIstartup(loadfilename); - g_free(loadfilename); + ReadLegacyMidiFile(loadfilename); load_store(); + g_free(loadfilename); } gtk_widget_destroy(load_dialog); } -- 2.45.2