summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2013-02-19 19:01:51 -0800
committerTim Rice <tim@multitalents.net>2013-02-19 19:01:51 -0800
commitc31db8cd6e301c8d4024cb9250e3178d13d1be44 (patch)
tree2199bc2ede9202280b28363168e6cb016fbdaa59 /regress
parentc08b3ef6f435b64c3b7125f93e5b3e661e019f3e (diff)
- (tim) [krl.c Makefile.in regress/Makefile regress/modpipe.c] remove unneeded
err.h include from krl.c. Additional portability fixes for modpipe. OK djm
Diffstat (limited to 'regress')
-rw-r--r--regress/Makefile6
-rwxr-xr-xregress/modpipe.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/regress/Makefile b/regress/Makefile
index c3aec43fc..779abf4fb 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -1,7 +1,7 @@
1# $OpenBSD: Makefile,v 1.62 2013/01/18 00:45:29 djm Exp $ 1# $OpenBSD: Makefile,v 1.62 2013/01/18 00:45:29 djm Exp $
2 2
3REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t8 t9 t-exec 3REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t8 t9 t-exec
4tests: prereq $(REGRESS_TARGETS) 4tests: $(REGRESS_TARGETS)
5 5
6# Interop tests are not run by default 6# Interop tests are not run by default
7interop interop-tests: t-exec-interop 7interop interop-tests: t-exec-interop
@@ -146,10 +146,6 @@ t9: $(OBJ)/t9.out
146 test "${TEST_SSH_ECC}" != yes || \ 146 test "${TEST_SSH_ECC}" != yes || \
147 ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t9.out > /dev/null 147 ${TEST_SSH_SSHKEYGEN} -Bf $(OBJ)/t9.out > /dev/null
148 148
149prereq: modpipe
150
151modpipe: modpipe.c
152
153t-exec: ${LTESTS:=.sh} 149t-exec: ${LTESTS:=.sh}
154 @if [ "x$?" = "x" ]; then exit 0; fi; \ 150 @if [ "x$?" = "x" ]; then exit 0; fi; \
155 for TEST in ""$?; do \ 151 for TEST in ""$?; do \
diff --git a/regress/modpipe.c b/regress/modpipe.c
index b05915b63..1d4229885 100755
--- a/regress/modpipe.c
+++ b/regress/modpipe.c
@@ -14,7 +14,7 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17/* $Id: modpipe.c,v 1.2 2013/02/19 02:15:08 djm Exp $ */ 17/* $Id: modpipe.c,v 1.3 2013/02/20 03:01:52 tim Exp $ */
18 18
19#include <sys/types.h> 19#include <sys/types.h>
20#include <unistd.h> 20#include <unistd.h>
@@ -23,6 +23,7 @@
23#include <stdarg.h> 23#include <stdarg.h>
24#include <stdlib.h> 24#include <stdlib.h>
25#include <errno.h> 25#include <errno.h>
26#include "openbsd-compat/getopt.c"
26 27
27static void err(int, const char *, ...) __attribute__((format(printf, 2, 3))); 28static void err(int, const char *, ...) __attribute__((format(printf, 2, 3)));
28static void errx(int, const char *, ...) __attribute__((format(printf, 2, 3))); 29static void errx(int, const char *, ...) __attribute__((format(printf, 2, 3)));