From d057115966720db64c3fbf7b2f3821709fe0a08c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 28 Dec 2006 22:26:02 +0100 Subject: [PATCH] execl() should be use NULL not 0 Signed-off-by: Karel Zak --- login-utils/agetty.c | 2 +- misc-utils/script.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.5