From a2e1ed839ebd352c3114193c24a61ef2ef72ddff Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 24 Jul 2008 23:21:33 +0000 Subject: 2008-07-23 Barry deFreese * device/chario.c (ttyinput_many): Change chars param to char *. * device/tty.h (ttyinput_many): Likewise. * i386/i386/pcb.h: Include . * i386/i386at/autoconf.h: Include . * i386/i386at/model_dep.c (inittodr): Cast &new_time.seconds to u_int *. * ipc/mach_port.c (mach_port_insert_right): Cast poly to ipc_object_t. * ipc/mach_debug.c (host_ipc_hash_info): Initialize size to 0 to make the compiler believe that there is no bug. * ipc/mach_debug.c (mach_port_space_info): Likewise for tree_size and table_size. * i386/i386at/com.c (commctl): Likewise for b. * i386/i386/trap.c (user_trap): Likewise for exc. * i386/i386/user_ldt.c (i386_set_ldt): Likewise for old_copy_object. * i386/i386at/com.c (comintr): Check line_stat&iOR instead of line&iOR. --- i386/i386at/autoconf.h | 1 + i386/i386at/com.c | 4 ++-- i386/i386at/model_dep.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'i386/i386at') diff --git a/i386/i386at/autoconf.h b/i386/i386at/autoconf.h index 4916d3e..a16a88f 100644 --- a/i386/i386at/autoconf.h +++ b/i386/i386at/autoconf.h @@ -26,6 +26,7 @@ #define _AUTOCONF_H_ #include +#include /* * probeio: diff --git a/i386/i386at/com.c b/i386/i386at/com.c index 4ba625d..51f3ff1 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -529,7 +529,7 @@ int unit; ((tp->t_flags&(EVENP|ODDP)) == EVENP || (tp->t_flags&(EVENP|ODDP)) == ODDP)) { /* parity error */; - } else if (line&iOR && !comoverrun) { + } else if (line_stat&iOR && !comoverrun) { printf("com%d: overrun\n", unit); comoverrun = 1; } else if (line_stat & (iFE | iBRKINTR)) { @@ -751,7 +751,7 @@ commctl( spl_t s; int unit; vm_offset_t dev_addr; - register int b; + register int b = 0; /* Suppress gcc warning */ unit = minor(tp->t_dev); diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index d020c92..b208cb2 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -445,7 +445,7 @@ inittodr(void) new_time.seconds = 0; new_time.microseconds = 0; - (void) readtodc(&new_time.seconds); + (void) readtodc((u_int *)&new_time.seconds); { spl_t s = splhigh(); -- cgit v1.2.3