diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-24 23:21:33 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:18 +0200 |
commit | a2e1ed839ebd352c3114193c24a61ef2ef72ddff (patch) | |
tree | 635ceb55eb00b7648a830dc22d7bfee98bce1faa /ipc | |
parent | 9640c4dba6b4a8f5e01b2b67fc47a836818bc38d (diff) |
2008-07-23 Barry deFreese <bddebian@comcast.net>
* device/chario.c (ttyinput_many): Change chars param to char *.
* device/tty.h (ttyinput_many): Likewise.
* i386/i386/pcb.h: Include <mach/exec/exec.h>.
* i386/i386at/autoconf.h: Include <chips/busses.h>.
* 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.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mach_debug.c | 6 | ||||
-rw-r--r-- | ipc/mach_port.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ipc/mach_debug.c b/ipc/mach_debug.c index 9854cec..28dd693 100644 --- a/ipc/mach_debug.c +++ b/ipc/mach_debug.c @@ -112,7 +112,7 @@ host_ipc_hash_info( mach_msg_type_number_t *countp) { vm_offset_t addr; - vm_size_t size; + vm_size_t size = 0; /* Suppress gcc warning */ hash_info_bucket_t *info; unsigned int potential, actual; kern_return_t kr; @@ -277,11 +277,11 @@ mach_port_space_info( ipc_info_name_t *table_info; unsigned int table_potential, table_actual; vm_offset_t table_addr; - vm_size_t table_size; + vm_size_t table_size = 0; /* Suppress gcc warning */ ipc_info_tree_name_t *tree_info; unsigned int tree_potential, tree_actual; vm_offset_t tree_addr; - vm_size_t tree_size; + vm_size_t tree_size = 0; /* Suppress gcc warning */ ipc_tree_entry_t tentry; ipc_entry_t table; ipc_entry_num_t tsize; diff --git a/ipc/mach_port.c b/ipc/mach_port.c index 750f12a..63c25dc 100644 --- a/ipc/mach_port.c +++ b/ipc/mach_port.c @@ -1287,7 +1287,7 @@ mach_port_insert_right( !MACH_MSG_TYPE_PORT_ANY_RIGHT(polyPoly)) return KERN_INVALID_VALUE; - if (!IO_VALID(poly)) + if (!IO_VALID((ipc_object_t)poly)) return KERN_INVALID_CAPABILITY; return ipc_object_copyout_name(space, poly, polyPoly, FALSE, name); |