From 8ca63b7ab79f326e932107b3ead77217e1529349 Mon Sep 17 00:00:00 2001 From: harti Date: Thu, 30 Oct 2003 15:14:34 +0000 Subject: Use (char *)NULL to terminated to argument list for execl(). Without this cast the compiler cannot know that it has to convert the null pointer constant NULL to a null pointer. --- usr.bin/newgrp/newgrp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/newgrp') diff --git a/usr.bin/newgrp/newgrp.c b/usr.bin/newgrp/newgrp.c index 5e80614..62d552f 100644 --- a/usr.bin/newgrp/newgrp.c +++ b/usr.bin/newgrp/newgrp.c @@ -299,6 +299,6 @@ doshell(void) shell = pwd->pw_shell; if (*shell == '\0') shell = _PATH_BSHELL; - execl(shell, basename(shell), NULL); + execl(shell, basename(shell), (char *)NULL); err(1, "%s", shell); } -- cgit v1.1