diff options
author | harti <harti@FreeBSD.org> | 2003-10-30 15:14:34 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-10-30 15:14:34 +0000 |
commit | 8ca63b7ab79f326e932107b3ead77217e1529349 (patch) | |
tree | 987e6d4bbf253c8132998e87032b6a4288ba5790 | |
parent | 82f1f29be8fd527d0afa911f0c7dfa9d1a3b67ef (diff) | |
download | FreeBSD-src-8ca63b7ab79f326e932107b3ead77217e1529349.zip FreeBSD-src-8ca63b7ab79f326e932107b3ead77217e1529349.tar.gz |
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.
-rw-r--r-- | usr.bin/newgrp/newgrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |