summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/TEST
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-07-09 07:02:08 +0000
committerderaadt <deraadt@openbsd.org>2001-07-09 07:02:08 +0000
commitc96f6a27c3654d9b37ce17714ba983b42dfbc904 (patch)
treee0f346e8dbda198bf6f0668e527c29de361f75cd /lib/libc_r/TEST
parenta first pass at -Wall (diff)
downloadwireguard-openbsd-c96f6a27c3654d9b37ce17714ba983b42dfbc904.tar.xz
wireguard-openbsd-c96f6a27c3654d9b37ce17714ba983b42dfbc904.zip
correct type on last arg to execl(); nordin@cse.ogi.edu
Diffstat (limited to 'lib/libc_r/TEST')
-rw-r--r--lib/libc_r/TEST/test_fcntl.c4
-rw-r--r--lib/libc_r/TEST/test_sock_2.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc_r/TEST/test_fcntl.c b/lib/libc_r/TEST/test_fcntl.c
index c501eb8b59c..816cebd6f35 100644
--- a/lib/libc_r/TEST/test_fcntl.c
+++ b/lib/libc_r/TEST/test_fcntl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test_fcntl.c,v 1.3 2000/01/06 06:53:52 d Exp $ */
+/* $OpenBSD: test_fcntl.c,v 1.4 2001/07/09 07:04:40 deraadt Exp $ */
/*
* Test fcntl() flag inheritance across a fork()
*/
@@ -17,7 +17,7 @@ main()
CHECKe(child = fork());
switch(child) {
case 0: /* child */
- CHECKe(execlp("test_create", "test_create", NULL));
+ CHECKe(execlp("test_create", "test_create", (char *)NULL));
/* NOTREACHED */
default: /* parent */
CHECKe(wait(NULL));
diff --git a/lib/libc_r/TEST/test_sock_2.c b/lib/libc_r/TEST/test_sock_2.c
index 88b3636236b..9b234702b5e 100644
--- a/lib/libc_r/TEST/test_sock_2.c
+++ b/lib/libc_r/TEST/test_sock_2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test_sock_2.c,v 1.5 2000/01/06 06:58:34 d Exp $ */
+/* $OpenBSD: test_sock_2.c,v 1.6 2001/07/09 07:04:40 deraadt Exp $ */
/* ==== test_sock_1.c =========================================================
* Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu
*
@@ -96,7 +96,7 @@ sock_accept(arg)
CHECKe(pid = fork());
switch(pid) {
case 0:
- execl("test_sock_2a", "test_sock_2a", "fork okay", NULL);
+ execl("test_sock_2a", "test_sock_2a", "fork okay", (char *)NULL);
DIE(errno, "execl");
default:
break;