summaryrefslogtreecommitdiff
path: root/usr.bin/tip/tip.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-29 22:58:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-29 22:58:57 +0000
commit463cba75940e8d0e067b310d6e927aba728372ad (patch)
tree130c53f45cb3d1a6d6453a457aba10b587c162b9 /usr.bin/tip/tip.h
parentfa88c49cf87763741484970530c5aa42960b2aad (diff)
Don't hard-code a list of allowed baud rates. Instead, accept
anything but check the return value of tcsetattr() and error out if it fails. This way we accept any baud rate the serial driver will support. mickey@ OK
Diffstat (limited to 'usr.bin/tip/tip.h')
-rw-r--r--usr.bin/tip/tip.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tip/tip.h b/usr.bin/tip/tip.h
index cb750a62015..fdfed66fcde 100644
--- a/usr.bin/tip/tip.h
+++ b/usr.bin/tip/tip.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tip.h,v 1.12 2002/02/16 21:27:55 millert Exp $ */
+/* $OpenBSD: tip.h,v 1.13 2002/05/29 22:58:56 millert Exp $ */
/* $NetBSD: tip.h,v 1.7 1997/04/20 00:02:46 mellon Exp $ */
/*
@@ -281,7 +281,7 @@ int args(char *buf, char *a[], int num);
int escape(void);
int prompt(char *s, char *p, size_t sz);
int size(char *s);
-int speed(int n);
+int ttysetup(int speed);
int uu_lock(char *ttyname);
int uu_unlock(char *ttyname);
int vstring(char *s, char *v);
@@ -305,7 +305,6 @@ void tipin(void);
void tipout(void);
void transfer(char *buf, int fd, char *eofchars);
void transmit(FILE *fd, char *eofchars, char *command);
-void ttysetup(int speed);
void unraw(void);
void user_uid(void);
void vinit(void);