diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-03 23:46:14 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-03 23:46:14 -0700 |
commit | 5ee8bcb7134d049abf50a34fcfd7a9d5e99ba323 (patch) | |
tree | fc2f029ddd7d17556b727c85a0740eb33a570b4e /dsimple.h | |
parent | 00d3b27549902d2d2156888d7fcbabbf01e87c90 (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |