summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/popen.c
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/gen/popen.c
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/gen/popen.c')
-rw-r--r--lib/libc/gen/popen.c4
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 */
}