summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemons/ChangeLog5
-rw-r--r--daemons/getty.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/daemons/ChangeLog b/daemons/ChangeLog
index 5f5b7fee..5e05dcfc 100644
--- a/daemons/ChangeLog
+++ b/daemons/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-11 Thomas Schwinge <tschwinge@gnu.org>
+
+ * getty.c (main) <execl>: Correctly specify sentinels to avoid GCC 4.3
+ warnings.
+
2002-09-15 Marcus Brinkmann <marcus@gnu.org>
* getty.c: Include <termios.h>.
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);