]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
para_gui ggo: Do not pass --no-handle-error.
authorAndre Noll <maan@systemlinux.org>
Sun, 29 Jul 2012 14:28:28 +0000 (16:28 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 27 Aug 2012 11:01:07 +0000 (13:01 +0200)
We are exiting anyway on errors. This change allows to skip
the check of the return value of gui_cmdline_parser() and
removes a line from the makefile.

gui.c
m4/gengetopt/makefile

diff --git a/gui.c b/gui.c
index 65b2ac05d748ab1bb7d24e3b752d906d2ffca5c5..a8a7fc9fb22c44aee4ec310467abba0fcade2e78 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1486,8 +1486,7 @@ int main(int argc, char *argv[])
        _argc = argc;
        _argv = argv;
 
-       if (gui_cmdline_parser(argc, argv, &conf) != 0)
-               exit(EXIT_FAILURE);
+       gui_cmdline_parser(argc, argv, &conf); /* exits on errors */
        HANDLE_VERSION_FLAG("gui", conf);
        cf = configfile_exists();
        if (!cf && conf.config_file_given) {
index 316ef47b87bdd8be9802e7680106fe49d9439cb2..a887ab764203477e33056a395400623a23529693 100644 (file)
@@ -27,7 +27,6 @@ $(cmdline_dir)/%_write.cmdline.h $(cmdline_dir)/%_write.cmdline.c: $(ggo_dir)/%_
                --func-name $(subst _write.ggo,,$(<F))_cmdline_parser < $<
 
 define ggo-opts
-$(if $(filter gui,$(*F)), --no-handle-error) \
 $(if $(filter recv filter write audiod,$(*F)), --no-handle-help) \
 $(if $(filter afh,$(*F)), --unamed-opts=audio_file) \
 $(if $(filter client audioc,$(*F)), --unamed-opts=command) \