summaryrefslogtreecommitdiffstats
path: root/libexec/getty/subr.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-11-21 07:43:53 +0000
committercharnier <charnier@FreeBSD.org>1997-11-21 07:43:53 +0000
commitf2586e9eaba48373007d28b326ddcbf5c07acd98 (patch)
tree5d9e323b8dd216202dd9ecf415ea6e5cbfe6291a /libexec/getty/subr.c
parent8191848c3fe6cf7a39563a64975e0b607295e35d (diff)
downloadFreeBSD-src-f2586e9eaba48373007d28b326ddcbf5c07acd98.zip
FreeBSD-src-f2586e9eaba48373007d28b326ddcbf5c07acd98.tar.gz
Correct incompletes .Xrs. Remove duplicate #includes and unused variables.
Diffstat (limited to 'libexec/getty/subr.c')
-rw-r--r--libexec/getty/subr.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 7bcffb9..c91c299 100644
--- a/libexec/getty/subr.c
+++ b/libexec/getty/subr.c
@@ -32,24 +32,28 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: subr.c,v 1.11 1997/09/01 10:06:05 davidn Exp $";
+#if 0
+static char sccsid[] = "@(#)from: subr.c 8.1 (Berkeley) 6/4/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
/*
* Melbourne getty.
*/
#define COMPAT_43
+#ifdef DEBUG
+#include <stdio.h>
+#endif
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <termios.h>
+#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/param.h>
+#include <sys/time.h>
#include <syslog.h>
-#ifdef DEBUG
-#include <stdio.h>
-#endif
#include "gettytab.h"
#include "pathnames.h"
@@ -802,8 +806,6 @@ portselector()
* portselector. Selection is done by looking at how the character '\r'
* is garbled at the different speeds.
*/
-#include <sys/time.h>
-
const char *
autobaud()
{
OpenPOWER on IntegriCloud