summaryrefslogtreecommitdiff
path: root/dsimple.c
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:06:45 +0100
commitdae232f6b65e06c44d8f2332a9d10f68115d7c79 (patch)
tree247f7279697f59ef5a7954eb6a3145d01653bdd7 /dsimple.c
parent78779cf48ec892325c4e3a9962f4a96c1c4c4b89 (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.
Diffstat (limited to 'dsimple.c')
-rw-r--r--dsimple.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dsimple.c b/dsimple.c
index c84ac3b..95fcf88 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -188,8 +188,7 @@ 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);