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/gen/popen.c | |
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/gen/popen.c')
-rw-r--r-- | lib/libc/gen/popen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/popen.c b/lib/libc/gen/popen.c index 561a45e9bba..7f47a5bb967 100644 --- a/lib/libc/gen/popen.c +++ b/lib/libc/gen/popen.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: popen.c,v 1.9 1997/09/11 18:51:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: popen.c,v 1.10 2001/07/09 07:04:39 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -118,7 +118,7 @@ popen(program, type) (void)close(pdes[0]); } } - execl(_PATH_BSHELL, "sh", "-c", program, NULL); + execl(_PATH_BSHELL, "sh", "-c", program, (char *)NULL); _exit(127); /* NOTREACHED */ } |