diff options
author | Roland McGrath <roland@gnu.org> | 2002-05-28 23:56:44 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-05-28 23:56:44 +0000 |
commit | 6985c2c532aedd98cfe726091a4364998e17242b (patch) | |
tree | 6568b2bc478350a70e47aa1f157d1668ae3eb5f6 /term | |
parent | a054404f75d213548fe0d496fd4aef127644e9f9 (diff) |
2002-05-28 Roland McGrath <roland@frob.com>
* devio.c (device_open_reply): int -> size_t
(devio_set_bits, devio_mdmctl, devio_mdmstate): Likewise.
Diffstat (limited to 'term')
-rw-r--r-- | term/devio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/term/devio.c b/term/devio.c index 576be5b3..5a2e9904 100644 --- a/term/devio.c +++ b/term/devio.c @@ -511,7 +511,7 @@ device_open_reply (mach_port_t replyport, mach_port_t device) { struct tty_status ttystat; - int count = TTY_STATUS_COUNT; + size_t count = TTY_STATUS_COUNT; error_t err = 0; if (replyport != phys_reply) @@ -593,7 +593,7 @@ devio_set_bits (struct termios *state) if (!(state->c_cflag & CIGNORE) && phys_device != MACH_PORT_NULL) { struct tty_status ttystat; - int cnt = TTY_STATUS_COUNT; + size_t cnt = TTY_STATUS_COUNT; /* Find the current state. */ device_get_status (phys_device, TTY_STATUS, (dev_status_t) &ttystat, &cnt); @@ -650,7 +650,7 @@ static error_t devio_mdmctl (int how, int bits) { int oldbits, newbits; - int cnt; + size_t cnt; if ((how == MDMCTL_BIS) || (how == MDMCTL_BIC)) { cnt = TTY_MODEM_COUNT; @@ -676,9 +676,8 @@ devio_mdmctl (int how, int bits) static error_t devio_mdmstate (int *state) { - int bits, cnt; - - cnt = TTY_MODEM_COUNT; + int bits; + size_t cnt = TTY_MODEM_COUNT; device_get_status (phys_device, TTY_MODEM, (dev_status_t) &bits, &cnt); if (cnt == TTY_MODEM_COUNT) *state = bits; |