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.
This commit is contained in:
harti 2003-10-30 15:14:34 +00:00
parent 82f1f29be8
commit 8ca63b7ab7

View File

@ -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);
}