summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-31 22:50:08 +0000
committerbde <bde@FreeBSD.org>1995-07-31 22:50:08 +0000
commit659cc4e678f789ebb48bdc78867357fdac0f8282 (patch)
treee645a6a065a8d752029a2b8444a9576b7ecd570d /sys
parent41051c44b5f8cd2912590dc64a0a63e51651124c (diff)
downloadFreeBSD-src-659cc4e678f789ebb48bdc78867357fdac0f8282.zip
FreeBSD-src-659cc4e678f789ebb48bdc78867357fdac0f8282.tar.gz
Obtained from: partly from ancient patches of mine via 1.1.5
Change all short variables in `struct tty' to int. Shorts were only right on ancient systems with ints optimized for vaxness over efficiency.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty.c4
-rw-r--r--sys/sys/tty.h16
2 files changed, 12 insertions, 8 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 7db76e1..4c57599 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.64 1995/07/31 21:43:37 bde Exp $
+ * $Id: tty.c,v 1.65 1995/07/31 22:48:33 bde Exp $
*/
/*-
@@ -2290,7 +2290,7 @@ ttysleep(tp, chan, pri, wmesg, timo)
char *wmesg;
{
int error;
- short gen;
+ int gen;
gen = tp->t_gen;
error = tsleep(chan, pri, wmesg, timo);
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index 99568d4..a0694e1 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.h 8.6 (Berkeley) 1/21/94
- * $Id: tty.h,v 1.29 1995/07/31 21:02:00 bde Exp $
+ * $Id: tty.h,v 1.30 1995/07/31 22:48:46 bde Exp $
*/
#ifndef _SYS_TTY_H_
@@ -90,11 +90,11 @@ struct tty {
/* Set hardware state. */
int (*t_param) __P((struct tty *, struct termios *));
void *t_sc; /* XXX: net/if_sl.c:sl_softc. */
- short t_column; /* Tty output column. */
- short t_rocount, t_rocol; /* Tty. */
- short t_hiwat; /* High water mark. */
- short t_lowat; /* Low water mark. */
- short t_gen; /* Generation number. */
+ int t_column; /* Tty output column. */
+ int t_rocount, t_rocol; /* Tty. */
+ int t_hiwat; /* High water mark. */
+ int t_lowat; /* Low water mark. */
+ int t_gen; /* Generation number. */
};
#define t_cc t_termios.c_cc
@@ -262,6 +262,10 @@ struct tty *ttymalloc __P((void));
void ttyfree __P((struct tty *));
/* From tty_tty.c. */
+/*
+ * XXX misplaced - these are just the cdev functions for a particular
+ * driver.
+ */
int cttyioctl __P((dev_t dev, int cmd, caddr_t addr, int flag,
struct proc *p));
int cttyopen __P((dev_t dev, int flag, int mode, struct proc *p));
OpenPOWER on IntegriCloud