1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

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.
This commit is contained in:
John Birrell 1998-05-05 21:54:26 +00:00
parent bd7f824ea4
commit ffa54cc6bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35756
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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