aboutsummaryrefslogtreecommitdiff
path: root/lib/libtermcap
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-05 21:54:26 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-05 21:54:26 +0000
commitffa54cc6bb80e8b18040deed6ce3fff0669d06c8 (patch)
tree8bb78ee182ca2b98f584a53cad28cb87369b41b0 /lib/libtermcap
parentbd7f824ea4424e6de0f5be28acb1b16c887a4b07 (diff)
downloadsrc-ffa54cc6bb80e8b18040deed6ce3fff0669d06c8.tar.gz
src-ffa54cc6bb80e8b18040deed6ce3fff0669d06c8.zip
The __set_ospeed() function is coded against the speed_t type declared
in termios.h, but it's prototype in termcap.h and the main file use the underlying definition (which is now an int, not a long for compatibility with NetBSD). Really termcap.h should use speed_t too, but I guess that this might break sources that don't include termios.h first.
Notes
Notes: svn path=/head/; revision=35756
Diffstat (limited to 'lib/libtermcap')
-rw-r--r--lib/libtermcap/termcap.32
-rw-r--r--lib/libtermcap/termcap.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libtermcap/termcap.3 b/lib/libtermcap/termcap.3
index 84fb554f0605..1f3c802c7bf2 100644
--- a/lib/libtermcap/termcap.3
+++ b/lib/libtermcap/termcap.3
@@ -65,7 +65,7 @@
.Ft char *
.Fn tparm "const char *cp" "..."
.Ft void
-.Fn __set_ospeed "unsigned long speed"
+.Fn __set_ospeed "unsigned int speed"
.Sh DESCRIPTION
These functions extract and use capabilities from a terminal capability data
base, usually
diff --git a/lib/libtermcap/termcap.h b/lib/libtermcap/termcap.h
index f97839e05771..e5824b7857cc 100644
--- a/lib/libtermcap/termcap.h
+++ b/lib/libtermcap/termcap.h
@@ -24,7 +24,7 @@
* SUCH DAMAGE.
*/
-/* $Id: termcap.h,v 1.11 1997/04/13 11:41:59 bde Exp $ */
+/* $Id: termcap.h,v 1.12 1998/03/12 14:09:55 bde Exp $ */
#ifndef _TERMCAP_H_
#define _TERMCAP_H_
@@ -46,7 +46,7 @@ extern int tputs __P((const char *, int, int (*)(int)));
extern char *tgoto __P((const char *, int, int));
extern char *tparm __P((const char *, ...));
-extern void __set_ospeed __P((unsigned long speed));
+extern void __set_ospeed __P((unsigned int speed));
__END_DECLS