From 12d3c44f22fc76fdf64cbf77e46d9d6a120ed5aa Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 11 Dec 2007 11:10:13 +0000 Subject: 2007-12-11 Thomas Schwinge * getty.c (main) : Correctly specify sentinels to avoid GCC 4.3 warnings. --- daemons/getty.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'daemons/getty.c') diff --git a/daemons/getty.c b/daemons/getty.c index bacec355..5a2896d8 100644 --- a/daemons/getty.c +++ b/daemons/getty.c @@ -1,5 +1,7 @@ /* Stubby version of getty for Hurd - Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc. + + Copyright (C) 1996, 1998, 1999, 2007 Free Software Foundation, Inc. + Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -127,10 +129,10 @@ main (int argc, char **argv) if (tt && strcmp (tt->ty_type, "dialup") == 0) /* Dialup lines time out (which is login's default). */ - execl (_PATH_LOGIN, "login", "-e", arg, 0); + execl (_PATH_LOGIN, "login", "-e", arg, NULL); else /* Hardwired lines don't. */ - execl (_PATH_LOGIN, "login", "-e", arg, "-aNOAUTH_TIMEOUT", 0); + execl (_PATH_LOGIN, "login", "-e", arg, "-aNOAUTH_TIMEOUT", NULL); syslog (LOG_ERR, "%s: %m", _PATH_LOGIN); -- cgit v1.2.3