aboutsummaryrefslogtreecommitdiff
path: root/libexec/getty/main.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-11-21 07:43:53 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-11-21 07:43:53 +0000
commitd748864d2c912637ecc3d55874df9af6ff5c2c8f (patch)
tree0a3dcec70b69c5a7ee8e879c8948626209651008 /libexec/getty/main.c
parent692727e680acec216d8d86a2807aa88bfbba8245 (diff)
Notes
Diffstat (limited to 'libexec/getty/main.c')
-rw-r--r--libexec/getty/main.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index cead48175fe4..d5ed46accf6b 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -32,14 +32,17 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1980, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-/*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/
-static char rcsid[] = "$Id: main.c,v 1.20 1997/06/03 12:56:47 davidn Exp $";
+#if 0
+static char sccsid[] = "@(#)from: main.c 8.1 (Berkeley) 6/20/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/param.h>
@@ -48,14 +51,12 @@ static char rcsid[] = "$Id: main.c,v 1.20 1997/06/03 12:56:47 davidn Exp $";
#include <sys/resource.h>
#include <sys/ttydefaults.h>
#include <sys/utsname.h>
-#include <errno.h>
-#include <signal.h>
-#include <fcntl.h>
-#include <time.h>
#include <ctype.h>
+#include <errno.h>
#include <fcntl.h>
-#include <libutil.h>
#include <locale.h>
+#include <libutil.h>
+#include <signal.h>
#include <setjmp.h>
#include <signal.h>
#include <stdlib.h>
@@ -172,7 +173,7 @@ timeoverrun(signo)
int signo;
{
- syslog(LOG_ERR, "getty exiting due to excessive running time\n");
+ syslog(LOG_ERR, "getty exiting due to excessive running time");
exit(1);
}