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:08:47 +0100
commit67a74f540cdbb7ded7aa44c751f5f0c8833c688f (patch)
tree2f7c31c99012a140343f910b2c77527d9df96754
parentb8115ee0e43c6c03025cad72219481e3fdb119d4 (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 171795b..b70aa43 100644
--- a/dsimple.c
+++ b/dsimple.c
@@ -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);