diff options
author | Branden Robinson <branden@debian.org> | 2005-02-11 02:14:27 -0500 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-11-16 22:06:45 +0100 |
commit | dae232f6b65e06c44d8f2332a9d10f68115d7c79 (patch) | |
tree | 247f7279697f59ef5a7954eb6a3145d01653bdd7 | |
parent | 78779cf48ec892325c4e3a9962f4a96c1c4c4b89 (diff) |
Do not spew usage on connection error
General philosophy:
The user should only be shown a usage message when:
* it is asked for with a --help option or the like.
* the command line is syntactically invalid.
-rw-r--r-- | dsimple.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -188,8 +188,7 @@ char *display_name; if (d == NULL) { fprintf (stderr, "%s: unable to open display '%s'\n", program_name, XDisplayName (display_name)); - usage (); - /* doesn't return */ + exit(1); } return(d); |