summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-12-11 11:10:13 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-12-11 11:10:13 +0000
commit12d3c44f22fc76fdf64cbf77e46d9d6a120ed5aa (patch)
treeae8763cb7da70a1f0b7f46fff32ced52e75e0068 /daemons
parente4632a52dda7d13205b008567c4fee879dc80055 (diff)
2007-12-11 Thomas Schwinge <tschwinge@gnu.org>
* getty.c (main) <execl>: Correctly specify sentinels to avoid GCC 4.3 warnings.
Diffstat (limited to 'daemons')
-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);