diff options
| author | 2019-02-19 05:33:04 +0100 | |
|---|---|---|
| committer | 2020-11-01 16:59:11 +0100 | |
| commit | 8d5e2b3a40a86d463d666cbf61906cf22febde34 (patch) | |
| tree | c2edf2220d3c05f5979281fced8a9726bd4f4a28 /surf.c | |
| parent | Makefile: rework how webextensions are handled (diff) | |
Remove common
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" |
