[openssh-commits] [openssh] 01/01: Remove local implementation of err, errx.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Jul 18 16:27:53 AEST 2016


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 0a454147568746c503f669e1ba861f76a2e7a585
Author: Darren Tucker <dtucker at zip.com.au>
Date:   Mon Jul 18 16:26:26 2016 +1000

    Remove local implementation of err, errx.
    
    We now have a shared implementation in libopenbsd-compat.
---
 regress/modpipe.c | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/regress/modpipe.c b/regress/modpipe.c
index e854f9e..c43e9cb 100755
--- a/regress/modpipe.c
+++ b/regress/modpipe.c
@@ -27,34 +27,6 @@
 #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)
 {

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list