summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog17
-rw-r--r--device/chario.c2
-rw-r--r--device/tty.h2
-rw-r--r--i386/i386/pcb.h1
-rw-r--r--i386/i386/trap.c2
-rw-r--r--i386/i386/user_ldt.c2
-rw-r--r--i386/i386at/autoconf.h1
-rw-r--r--i386/i386at/com.c4
-rw-r--r--i386/i386at/model_dep.c2
-rw-r--r--ipc/mach_debug.c6
-rw-r--r--ipc/mach_port.c2
11 files changed, 30 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 2da21aa..83b1914 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,22 @@
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.
+
+2008-07-23 Barry deFreese <bddebian@comcast.net>
+
* i386/i386/locore.h (copyinmsg, copyoutmsg):
Make parameters const void* and void* instead of vm_offset_t.
* i386/i386at/com.c (comportdeath): Cast port as ipc_port_t in
diff --git a/device/chario.c b/device/chario.c
index 9793d34..9e2dbad 100644
--- a/device/chario.c
+++ b/device/chario.c
@@ -1007,7 +1007,7 @@ void ttyinput(
*/
void ttyinput_many(
struct tty *tp,
- unsigned char *chars,
+ char *chars,
int count)
{
/*
diff --git a/device/tty.h b/device/tty.h
index 10ef304..865b13e 100644
--- a/device/tty.h
+++ b/device/tty.h
@@ -106,7 +106,7 @@ extern void ttyinput(
extern void ttyinput_many(
struct tty * tp,
- unsigned char * chars,
+ char * chars,
int count);
extern boolean_t ttymodem(
diff --git a/i386/i386/pcb.h b/i386/i386/pcb.h
index dc9cbd7..f8671a2 100644
--- a/i386/i386/pcb.h
+++ b/i386/i386/pcb.h
@@ -27,6 +27,7 @@
#define _I386_PCB_H_
#include <sys/types.h>
+#include <mach/exec/exec.h>
extern void pcb_init (thread_t thread);
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index 41ce0cc..f14491a 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -369,7 +369,7 @@ dump_ss(regs);
int user_trap(regs)
register struct i386_saved_state *regs;
{
- int exc;
+ int exc = 0; /* Suppress gcc warning */
int code;
int subcode;
register int type;
diff --git a/i386/i386/user_ldt.c b/i386/i386/user_ldt.c
index e6bfc95..942ad07 100644
--- a/i386/i386/user_ldt.c
+++ b/i386/i386/user_ldt.c
@@ -111,7 +111,7 @@ i386_set_ldt(thread, first_selector, desc_list, count, desc_list_inline)
pcb_t pcb;
vm_size_t ldt_size_needed;
int first_desc = sel_idx(first_selector);
- vm_map_copy_t old_copy_object;
+ vm_map_copy_t old_copy_object = NULL; /* Suppress gcc warning */
if (thread == THREAD_NULL)
return KERN_INVALID_ARGUMENT;
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 <mach/std_types.h>
+#include <chips/busses.h>
/*
* 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();
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);