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:07:31 +0100 |
commit | 3c139c58b5c2c12bde693af298f72fe3ea4e0e02 (patch) | |
tree | cbee507efe0cd268958ec9f6986627370751517f | |
parent | 3ca0bb9c461c7f96104dacb2b9147d2576c2cada (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
@@ -123,8 +123,7 @@ Display *Open_Display(const 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); |