From: Karel Zak Date: Thu, 28 Dec 2006 21:26:02 +0000 (+0100) Subject: execl() should be use NULL not 0 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d057115966720db64c3fbf7b2f3821709fe0a08c;p=util-linux 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 d159d573..eb9fab56 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 333ee0a9..a8506488 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();