execl() should be use NULL not 0

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2006-12-28 22:26:02 +01:00
parent 8174c9ca72
commit d057115966
2 changed files with 3 additions and 3 deletions

View file

@ -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 */
}

View file

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