summaryrefslogtreecommitdiff
path: root/usr.bin/tip/aculib/t3000.c
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2001-09-26 06:07:29 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2001-09-26 06:07:29 +0000
commit81d7316a0fd03a90c6274ed025efe3d9db9c22d6 (patch)
tree3b3dde31daf6e3e419e5359dfc7fe415456a9ccc /usr.bin/tip/aculib/t3000.c
parent450f0435cc177f758171ac06f69f18444988ba4f (diff)
Wall cleanup w/ some fixes; ok millert
Diffstat (limited to 'usr.bin/tip/aculib/t3000.c')
-rw-r--r--usr.bin/tip/aculib/t3000.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/tip/aculib/t3000.c b/usr.bin/tip/aculib/t3000.c
index 5355abdbda6..e51a4f04fa3 100644
--- a/usr.bin/tip/aculib/t3000.c
+++ b/usr.bin/tip/aculib/t3000.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t3000.c,v 1.7 2001/09/09 19:26:53 millert Exp $ */
+/* $OpenBSD: t3000.c,v 1.8 2001/09/26 06:07:28 pvalchev Exp $ */
/* $NetBSD: t3000.c,v 1.5 1997/02/11 09:24:18 mrg Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)t3000.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: t3000.c,v 1.7 2001/09/09 19:26:53 millert Exp $";
+static char rcsid[] = "$OpenBSD: t3000.c,v 1.8 2001/09/26 06:07:28 pvalchev Exp $";
#endif /* not lint */
/*
@@ -59,6 +59,7 @@ static jmp_buf timeoutbuf, intbuf;
static int t3000_sync(), t3000_connect(), t3000_swallow();
static void t3000_nap();
+int
t3000_dialer(num, acu)
register char *num;
char *acu;
@@ -106,7 +107,7 @@ badsynch:
connected = t3000_connect();
#ifdef ACULOG
if (timeout) {
- (void)sprintf(line, "%d second dial timeout",
+ (void)sprintf(line, "%ld second dial timeout",
number(value(DIALTIMEOUT)));
logent(value(HOST), num, "t3000", line);
}
@@ -116,6 +117,7 @@ badsynch:
return (connected);
}
+void
t3000_disconnect()
{
/* first hang up the modem*/
@@ -126,6 +128,7 @@ t3000_disconnect()
close(FD);
}
+void
t3000_abort()
{
t3000_write(FD, "\r", 1); /* send anything to abort the call */
@@ -265,9 +268,7 @@ again:
putchar(c);
#endif
}
-error1:
printf("%s\r\n", dialer_buf);
-error:
signal(SIGALRM, f);
return (0);
}
@@ -321,6 +322,7 @@ if (len == 0) len = 1;
return (0);
}
+static int
t3000_write(fd, cp, n)
int fd;
char *cp;