]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cast NULL to char * when using execl
authorEgor Chelak <egor.chelak@gmail.com>
Thu, 29 Oct 2020 17:49:07 +0000 (19:49 +0200)
committerEgor Chelak <egor.chelak@gmail.com>
Thu, 29 Oct 2020 17:49:07 +0000 (19:49 +0200)
commit1b10fa0ef778cb1cae84e635d72e038f06efbd06
tree0eebcc419d1cf2b2610975e3e0948359dffd52ce
parent9210db64a6e44ba5c6c76446835dd16606b5e79f
cast NULL to char * when using execl

When calling variadic functions, NULL must be explicitly cast to a
desired type.
This is noted in the exec(3) manpage.

The call in newgrp.c was changed for consistency.

Signed-off-by: Egor Chelak <egor.chelak@gmail.com>
lib/exec_shell.c
lib/pty-session.c
login-utils/newgrp.c
login-utils/sulogin.c
login-utils/vipw.c
sys-utils/eject.c
sys-utils/setarch.c
term-utils/script.c
term-utils/scriptlive.c
text-utils/pg.c