From 8636b161b333b18525b6f5ffc5139079c29c0d63 Mon Sep 17 00:00:00 2001 From: brian 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/apply/apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/apply/apply.c') diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c index 0894957..1fc4796 100644 --- a/usr.bin/apply/apply.c +++ b/usr.bin/apply/apply.c @@ -244,7 +244,7 @@ exec_shell(const char *command, char *use_shell, char *use_name) err(1, "vfork"); case 0: /* child */ (void)sigsetmask(omask); - execl(use_shell, use_name, "-c", command, NULL); + execl(use_shell, use_name, "-c", command, (char *)NULL); warn("%s", use_shell); _exit(1); } -- cgit v1.1