summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-07-18 16:26:26 +1000
committerDarren Tucker <dtucker@zip.com.au>2016-07-18 16:27:26 +1000
commit0a454147568746c503f669e1ba861f76a2e7a585 (patch)
treed506120a266a4d0aa190d19449e72689b47a8e92 /regress
parenteb999a4590846ba4d56ddc90bd07c23abfbab7b1 (diff)
Remove local implementation of err, errx.
We now have a shared implementation in libopenbsd-compat.
Diffstat (limited to 'regress')
-rwxr-xr-xregress/modpipe.c28
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
30static void err(int, const char *, ...) __attribute__((format(printf, 2, 3)));
31static void errx(int, const char *, ...) __attribute__((format(printf, 2, 3)));
32
33static void
34err(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
46static void
47errx(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
58static void 30static void
59usage(void) 31usage(void)
60{ 32{