summaryrefslogtreecommitdiffstats
path: root/libexec/getty/chat.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/chat.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/chat.c')
-rw-r--r--libexec/getty/chat.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c
index 964564e..af509f0 100644
--- a/libexec/getty/chat.c
+++ b/libexec/getty/chat.c
@@ -21,21 +21,21 @@
*
* Modem chat module - send/expect style functions for getty
* For semi-intelligent modem handling.
- *
- * $Id: chat.c,v 1.3 1997/02/22 14:21:36 peter Exp $
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#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>
@@ -44,8 +44,8 @@
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <termios.h>
#include <time.h>
+#include <termios.h>
#include <unistd.h>
#include <sys/socket.h>
@@ -169,8 +169,6 @@ read_chat(chatstr)
/* Read escapes */
for (q = r = (unsigned char *)p; *r; ++q)
{
- int val;
-
if (*q == '\\')
{
/* handle special escapes */
@@ -480,7 +478,6 @@ getty_chat(scrstr, timeout, debug)
int i = r = 0;
int off = 0;
sig_t old_alarm;
- struct termios tneed;
/*
* We need to be in raw mode for all this
OpenPOWER on IntegriCloud