diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-07-18 16:26:26 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-07-18 16:27:26 +1000 |
commit | 0a454147568746c503f669e1ba861f76a2e7a585 (patch) | |
tree | d506120a266a4d0aa190d19449e72689b47a8e92 /regress | |
parent | eb999a4590846ba4d56ddc90bd07c23abfbab7b1 (diff) |
Remove local implementation of err, errx.
We now have a shared implementation in libopenbsd-compat.
Diffstat (limited to 'regress')
-rwxr-xr-x | regress/modpipe.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/regress/modpipe.c b/regress/modpipe.c index e854f9e07..c43e9cba1 100755 --- a/regress/modpipe.c +++ b/regress/modpipe.c | |||
@@ -27,34 +27,6 @@ | |||
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | #include "openbsd-compat/getopt_long.c" | 28 | #include "openbsd-compat/getopt_long.c" |
29 | 29 | ||
30 | static void err(int, const char *, ...) __attribute__((format(printf, 2, 3))); | ||
31 | static void errx(int, const char *, ...) __attribute__((format(printf, 2, 3))); | ||
32 | |||
33 | static void | ||
34 | err(int r, const char *fmt, ...) | ||
35 | { | ||
36 | va_list args; | ||
37 | |||
38 | va_start(args, fmt); | ||
39 | fprintf(stderr, "%s: ", strerror(errno)); | ||
40 | vfprintf(stderr, fmt, args); | ||
41 | fputc('\n', stderr); | ||
42 | va_end(args); | ||
43 | exit(r); | ||
44 | } | ||
45 | |||
46 | static void | ||
47 | errx(int r, const char *fmt, ...) | ||
48 | { | ||
49 | va_list args; | ||
50 | |||
51 | va_start(args, fmt); | ||
52 | vfprintf(stderr, fmt, args); | ||
53 | fputc('\n', stderr); | ||
54 | va_end(args); | ||
55 | exit(r); | ||
56 | } | ||
57 | |||
58 | static void | 30 | static void |
59 | usage(void) | 31 | usage(void) |
60 | { | 32 | { |