diff options
author | 2001-07-09 07:02:08 +0000 | |
---|---|---|
committer | 2001-07-09 07:02:08 +0000 | |
commit | c96f6a27c3654d9b37ce17714ba983b42dfbc904 (patch) | |
tree | e0f346e8dbda198bf6f0668e527c29de361f75cd /usr.bin/script/script.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 'usr.bin/script/script.c')
-rw-r--r-- | usr.bin/script/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 0c1e5af3fcf..972a1cf405a 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: script.c,v 1.14 2001/01/11 19:26:01 deraadt Exp $ */ +/* $OpenBSD: script.c,v 1.15 2001/07/09 07:04:52 deraadt Exp $ */ /* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: script.c,v 1.14 2001/01/11 19:26:01 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: script.c,v 1.15 2001/07/09 07:04:52 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -246,7 +246,7 @@ doshell() (void)close(master); (void)fclose(fscript); login_tty(slave); - execl(shell, shell, "-i", NULL); + execl(shell, shell, "-i", (char *)NULL); perror(shell); fail(); } |