summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBranden Robinson <branden@debian.org>2005-02-11 02:14:27 -0500
committerJulien Cristau <jcristau@debian.org>2008-11-16 22:07:31 +0100
commit3c139c58b5c2c12bde693af298f72fe3ea4e0e02 (patch)
treecbee507efe0cd268958ec9f6986627370751517f
parent3ca0bb9c461c7f96104dacb2b9147d2576c2cada (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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dsimple.c b/dsimple.c
index 2642e31..4bd4837 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -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);