Browse Source

Cleanup naming

master
cancel 6 years ago
parent
commit
1f137b3851
  1. 8
      tui_main.c

8
tui_main.c

@ -977,7 +977,7 @@ int main(int argc, char** argv) {
{NULL, 0, NULL, 0}}; {NULL, 0, NULL, 0}};
char* input_file = NULL; char* input_file = NULL;
int margin_thickness = 2; int margin_thickness = 2;
char const* osc_ip_send_addr = NULL; char const* osc_hostname = NULL;
char const* osc_port = NULL; char const* osc_port = NULL;
Midi_mode midi_mode; Midi_mode midi_mode;
midi_mode_init(&midi_mode); midi_mode_init(&midi_mode);
@ -1000,7 +1000,7 @@ int main(int argc, char** argv) {
} }
} break; } break;
case Argopt_osc_server: { case Argopt_osc_server: {
osc_ip_send_addr = optarg; osc_hostname = optarg;
} break; } break;
case Argopt_osc_port: { case Argopt_osc_port: {
osc_port = optarg; osc_port = optarg;
@ -1030,7 +1030,7 @@ int main(int argc, char** argv) {
App_state app_state; App_state app_state;
app_init(&app_state); app_init(&app_state);
if (osc_ip_send_addr != NULL && osc_port == NULL) { if (osc_hostname != NULL && osc_port == NULL) {
fprintf(stderr, fprintf(stderr,
"An OSC server address was specified, but no OSC port was " "An OSC server address was specified, but no OSC port was "
"specified.\n" "specified.\n"
@ -1039,7 +1039,7 @@ int main(int argc, char** argv) {
exit(1); exit(1);
} }
if (osc_port != NULL) { if (osc_port != NULL) {
if (!app_set_osc_udp(&app_state, osc_ip_send_addr, osc_port)) { if (!app_set_osc_udp(&app_state, osc_hostname, osc_port)) {
fprintf(stderr, "Failed to set up OSC networking\n"); fprintf(stderr, "Failed to set up OSC networking\n");
app_deinit(&app_state); app_deinit(&app_state);
exit(1); exit(1);

Loading…
Cancel
Save