]> git.tue.mpg.de Git - paraslash.git/commitdiff
gui: Remove pointless error message for invalid command line options.
authorAndre Noll <maan@systemlinux.org>
Tue, 18 Jan 2011 20:19:18 +0000 (21:19 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 11 Feb 2011 10:25:07 +0000 (11:25 +0100)
This error message is never printed anyway because gui_cmdline_parser()
exits on errors.

gui.c

diff --git a/gui.c b/gui.c
index 5b25c51bee99fa5ad3707a72fa012e4479983dee..ebddd88cb20b12514e249d7a8ed2dfb771df4668 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1394,10 +1394,7 @@ int main(int argc, char *argv[])
        _argc = argc;
        _argv = argv;
 
-       if (gui_cmdline_parser(argc, argv, &conf)) {
-               fprintf(stderr, "parse error while reading command line\n");
-               exit(EXIT_FAILURE);
-       }
+       gui_cmdline_parser(argc, argv, &conf);
        HANDLE_VERSION_FLAG("gui", conf);
        if (check_key_map_args() < 0) {
                fprintf(stderr, "invalid key map\n");