]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove local implementation of err, errx.
authorDarren Tucker <dtucker@zip.com.au>
Mon, 18 Jul 2016 06:26:26 +0000 (16:26 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Mon, 18 Jul 2016 06:27:26 +0000 (16:27 +1000)
We now have a shared implementation in libopenbsd-compat.

regress/modpipe.c

index e854f9e0707df413a3932a65a758969f8ce1f23f..c43e9cba19bee50800db84f47a6a3ca8e83429d4 100755 (executable)
 #include <errno.h>
 #include "openbsd-compat/getopt_long.c"
 
-static void err(int, const char *, ...) __attribute__((format(printf, 2, 3)));
-static void errx(int, const char *, ...) __attribute__((format(printf, 2, 3)));
-
-static void
-err(int r, const char *fmt, ...)
-{
-       va_list args;
-
-       va_start(args, fmt);
-       fprintf(stderr, "%s: ", strerror(errno));
-       vfprintf(stderr, fmt, args);
-       fputc('\n', stderr);
-       va_end(args);
-       exit(r);
-}
-
-static void
-errx(int r, const char *fmt, ...)
-{
-       va_list args;
-
-       va_start(args, fmt);
-       vfprintf(stderr, fmt, args);
-       fputc('\n', stderr);
-       va_end(args);
-       exit(r);
-}
-
 static void
 usage(void)
 {