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:08:47 +0100 |
commit | 67a74f540cdbb7ded7aa44c751f5f0c8833c688f (patch) | |
tree | 2f7c31c99012a140343f910b2c77527d9df96754 | |
parent | b8115ee0e43c6c03025cad72219481e3fdb119d4 (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
@@ -110,8 +110,7 @@ Display *Open_Display(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); |