diff options
author | Branden Robinson <branden@debian.org> | 2005-02-11 02:14:27 -0500 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-11-16 20:51:30 +0100 |
commit | a27df6ee496a1b2df678242cf514490924f44027 (patch) | |
tree | 7b40481e4b523ad439b46f7b380e396c1bac9397 | |
parent | 37401df6799722d16bc02c52b241cf2ef5070b7d (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
@@ -109,8 +109,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); |