summaryrefslogtreecommitdiffstats
path: root/lib/libtermcap
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-05 21:54:26 +0000
committerjb <jb@FreeBSD.org>1998-05-05 21:54:26 +0000
commitef2879f73e1c87069a068374b0da4c87aed3bdf6 (patch)
tree1e376ed6839d9c8cfd6a9869b989a0612c3b3c0d /lib/libtermcap
parentf0607ab21de0874ca7c8f1f36d2b5dcb2706be94 (diff)
downloadFreeBSD-src-ef2879f73e1c87069a068374b0da4c87aed3bdf6.zip
FreeBSD-src-ef2879f73e1c87069a068374b0da4c87aed3bdf6.tar.gz
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.
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 84fb554..1f3c802 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 f97839e..e5824b7 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
OpenPOWER on IntegriCloud