diff options
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -141,6 +141,7 @@ typedef struct { } SiteSpecific; /* Surf */ +static void die(const char *errstr, ...); static void usage(void); static void setup(void); static void sigchld(int unused); @@ -302,6 +303,17 @@ static ParamName loadfinished[] = { #include "config.h" void +die(const char *errstr, ...) +{ + va_list ap; + + va_start(ap, errstr); + vfprintf(stderr, errstr, ap); + va_end(ap); + exit(1); +} + +void usage(void) { die("usage: surf [-bBdDfFgGiIkKmMnNpPsStTvwxX]\n" |