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 20:51:30 +0100
commita27df6ee496a1b2df678242cf514490924f44027 (patch)
tree7b40481e4b523ad439b46f7b380e396c1bac9397
parent37401df6799722d16bc02c52b241cf2ef5070b7d (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 2c407cd..780c415 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -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);