From 7bc6d0158f0e9863a2a13a951321185d214cd3be Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Mon, 9 Jul 2001 09:24:06 +0000 Subject: Fix the type of the NULL arg to execl() Idea from: Theo de Raadt --- usr.bin/script/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/script') diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 5a19095fd065..b6a59c83a83d 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -245,7 +245,7 @@ doshell(av) execvp(av[0], av); warn("%s", av[0]); } else { - execl(shell, shell, "-i", NULL); + execl(shell, shell, "-i", (char *)NULL); warn("%s", shell); } fail(); -- cgit v1.2.3