From: Karel Zak Date: Thu, 28 Dec 2006 21:26:02 +0000 (+0100) Subject: execl() should be use NULL not 0 X-Git-Tag: v2.13-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d057115966720db64c3fbf7b2f3821709fe0a08c;p=thirdparty%2Futil-linux.git execl() should be use NULL not 0 Signed-off-by: Karel Zak --- diff --git a/login-utils/agetty.c b/login-utils/agetty.c index d159d573c2..eb9fab5609 100644 --- a/login-utils/agetty.c +++ b/login-utils/agetty.c @@ -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 */ } diff --git a/misc-utils/script.c b/misc-utils/script.c index 333ee0a98b..a8506488cc 100644 --- a/misc-utils/script.c +++ b/misc-utils/script.c @@ -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();