diff options
author | 2001-07-09 07:02:08 +0000 | |
---|---|---|
committer | 2001-07-09 07:02:08 +0000 | |
commit | c96f6a27c3654d9b37ce17714ba983b42dfbc904 (patch) | |
tree | e0f346e8dbda198bf6f0668e527c29de361f75cd /lib/libc_r/TEST | |
parent | a first pass at -Wall (diff) | |
download | wireguard-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.c | 4 | ||||
-rw-r--r-- | lib/libc_r/TEST/test_sock_2.c | 4 |
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; |