summaryrefslogtreecommitdiffstats
path: root/usr.bin/newgrp
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-10-30 15:14:34 +0000
committerharti <harti@FreeBSD.org>2003-10-30 15:14:34 +0000
commit8ca63b7ab79f326e932107b3ead77217e1529349 (patch)
tree987e6d4bbf253c8132998e87032b6a4288ba5790 /usr.bin/newgrp
parent82f1f29be8fd527d0afa911f0c7dfa9d1a3b67ef (diff)
downloadFreeBSD-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.
Diffstat (limited to 'usr.bin/newgrp')
-rw-r--r--usr.bin/newgrp/newgrp.c2
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);
}
OpenPOWER on IntegriCloud