diff options
author | Robin Gareus <robin@gareus.org> | 2019-07-04 22:21:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-07-04 22:21:49 +0200 |
commit | 8f9a1e1cf40bd6c4bb124444e4fb897432139b37 (patch) | |
tree | f280e3e5b8977b5647bf23d764675737c90542c2 /gtk2_ardour/main.cc | |
parent | e76e18af961273cd7a275d5f17e2eeb836631010 (diff) |
Use exit-status macros for compatibility 3/3
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r-- | gtk2_ardour/main.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 2635dc9c50..c4611179e3 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -149,7 +149,7 @@ This could be due to misconfiguration or to an error inside %2.\n\ Click OK to exit %1."), PROGRAM_NAME, AudioEngine::instance()->current_backend_name())); msg.run (); - _exit (0); + _exit (EXIT_SUCCESS); } else { @@ -355,7 +355,7 @@ int main (int argc, char *argv[]) if (parse_opts (argc, argv)) { command_line_parse_error (&argc, &argv); - exit (1); + exit (EXIT_FAILURE); } cout << PROGRAM_NAME @@ -369,7 +369,7 @@ int main (int argc, char *argv[]) << endl; if (just_version) { - exit (0); + exit (EXIT_SUCCESS); } if (no_splash) { @@ -390,7 +390,7 @@ int main (int argc, char *argv[]) "Run %1 from a commandline for more information."), PROGRAM_NAME), false, Gtk::MESSAGE_ERROR , Gtk::BUTTONS_OK, true); msg.run (); - exit (1); + exit (EXIT_FAILURE); } if (curvetest_file) { @@ -407,14 +407,14 @@ int main (int argc, char *argv[]) if (UIConfiguration::instance().pre_gui_init ()) { error << _("Could not complete pre-GUI initialization") << endmsg; - exit (1); + exit (EXIT_FAILURE); } try { ui = new ARDOUR_UI (&argc, &argv, localedir.c_str()); } catch (failed_constructor& err) { error << string_compose (_("could not create %1 GUI"), PROGRAM_NAME) << endmsg; - exit (1); + exit (EXIT_FAILURE); } #ifndef NDEBUG |