execl() should be use NULL not 0
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
8174c9ca72
commit
d057115966
2 changed files with 3 additions and 3 deletions
|
@ -382,7 +382,7 @@ main(argc, argv)
|
|||
|
||||
/* Let the login program take care of password validation. */
|
||||
|
||||
(void) execl(options.login, options.login, "--", logname, (char *) 0);
|
||||
(void) execl(options.login, options.login, "--", logname, NULL);
|
||||
error(_("%s: can't exec %s: %m"), options.tty, options.login);
|
||||
exit(0); /* quiet GCC */
|
||||
}
|
||||
|
|
|
@ -324,9 +324,9 @@ doshell() {
|
|||
shname = shell;
|
||||
|
||||
if (cflg)
|
||||
execl(shell, shname, "-c", cflg, 0);
|
||||
execl(shell, shname, "-c", cflg, NULL);
|
||||
else
|
||||
execl(shell, shname, "-i", 0);
|
||||
execl(shell, shname, "-i", NULL);
|
||||
|
||||
perror(shell);
|
||||
fail();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue