summaryrefslogtreecommitdiff
path: root/dsimple.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-06-03 23:46:14 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-06-03 23:46:14 -0700
commit5ee8bcb7134d049abf50a34fcfd7a9d5e99ba323 (patch)
treefc2f029ddd7d17556b727c85a0740eb33a570b4e /dsimple.h
parent00d3b27549902d2d2156888d7fcbabbf01e87c90 (diff)
Print which option was in error along with usage message
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dsimple.h')
-rw-r--r--dsimple.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dsimple.h b/dsimple.h
index b0422bd..18679b8 100644
--- a/dsimple.h
+++ b/dsimple.h
@@ -61,7 +61,7 @@ Display *Open_Display(const char *);
void Setup_Display_And_Screen(int *, char **);
void Close_Display(void);
Window Select_Window_Args(int *, char **);
-void usage(void) _X_NORETURN;
+void usage(const char *errmsg) _X_NORETURN _X_COLD;
#define X_USAGE "[host:display]" /* X arguments handled by
Get_Display_Name */
@@ -76,5 +76,5 @@ void usage(void) _X_NORETURN;
Window Select_Window(Display *, int);
Window Window_With_Name(Display *, Window, const char *);
-void Fatal_Error(const char *, ...) _X_NORETURN _X_ATTRIBUTE_PRINTF(1, 2);
+void Fatal_Error(const char *, ...) _X_NORETURN _X_ATTRIBUTE_PRINTF(1, 2) _X_COLD;
void outl(const char *, ...) _X_ATTRIBUTE_PRINTF(1, 2);