Hi folks,

Here is another.  Mainly incompatible pointer types or use of
uninitialized variables warnings.

Thanks,

Barry deFreese


2008-07-23  Barry deFreese  <[EMAIL PROTECTED]>

        * 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 as u_int *.
        * ipc/mach_port.c (mach_port_insert_right): Cast poly as 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 not line&iOR.
? INSTALL
? Makefile.in
? aclocal.m4
? autom4te.cache
? build-aux
? config.h.in
? configure
? doc/mach.info
? doc/mach.info-1
? doc/mach.info-2
? doc/stamp-vti
? doc/version.texi
Index: device/chario.c
===================================================================
RCS file: /sources/hurd/gnumach/device/Attic/chario.c,v
retrieving revision 1.3.2.3
diff -u -p -r1.3.2.3 chario.c
--- device/chario.c	17 Jul 2008 00:04:00 -0000	1.3.2.3
+++ device/chario.c	24 Jul 2008 02:18:41 -0000
@@ -1007,7 +1007,7 @@ void ttyinput(
  */
 void ttyinput_many(
 	struct tty	*tp,
-	unsigned char	*chars,
+	char	*chars,
 	int		count)
 {
 	/*
Index: device/tty.h
===================================================================
RCS file: /sources/hurd/gnumach/device/Attic/tty.h,v
retrieving revision 1.1.1.1.4.2
diff -u -p -r1.1.1.1.4.2 tty.h
--- device/tty.h	22 Jul 2008 22:28:06 -0000	1.1.1.1.4.2
+++ device/tty.h	24 Jul 2008 02:18:41 -0000
@@ -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(
Index: i386/i386/pcb.h
===================================================================
RCS file: /sources/hurd/gnumach/i386/i386/Attic/pcb.h,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 pcb.h
--- i386/i386/pcb.h	20 Jul 2008 17:05:36 -0000	1.1.2.2
+++ i386/i386/pcb.h	24 Jul 2008 02:18:41 -0000
@@ -27,6 +27,7 @@
 #define _I386_PCB_H_
 
 #include <sys/types.h>
+#include <mach/exec/exec.h>
 
 extern void pcb_init (thread_t thread);
 
Index: i386/i386/trap.c
===================================================================
RCS file: /sources/hurd/gnumach/i386/i386/trap.c,v
retrieving revision 1.5.2.14
diff -u -p -r1.5.2.14 trap.c
--- i386/i386/trap.c	22 Jul 2008 22:28:06 -0000	1.5.2.14
+++ i386/i386/trap.c	24 Jul 2008 02:18:41 -0000
@@ -369,7 +369,7 @@ dump_ss(regs);
 int user_trap(regs)
 	register struct i386_saved_state *regs;
 {
-	int	exc;
+	int	exc = 0;
 	int	code;
 	int	subcode;
 	register int	type;
Index: i386/i386/user_ldt.c
===================================================================
RCS file: /sources/hurd/gnumach/i386/i386/user_ldt.c,v
retrieving revision 1.2.4.6
diff -u -p -r1.2.4.6 user_ldt.c
--- i386/i386/user_ldt.c	20 Jul 2008 17:05:37 -0000	1.2.4.6
+++ i386/i386/user_ldt.c	24 Jul 2008 02:18:41 -0000
@@ -111,7 +111,7 @@ i386_set_ldt(thread, first_selector, des
 	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;
 
 	if (thread == THREAD_NULL)
 	    return KERN_INVALID_ARGUMENT;
Index: i386/i386at/autoconf.h
===================================================================
RCS file: /sources/hurd/gnumach/i386/i386at/Attic/autoconf.h,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 autoconf.h
--- i386/i386at/autoconf.h	20 Jul 2008 17:05:37 -0000	1.1.2.1
+++ i386/i386at/autoconf.h	24 Jul 2008 02:18:41 -0000
@@ -26,6 +26,7 @@
 #define _AUTOCONF_H_
 
 #include <mach/std_types.h>
+#include <chips/busses.h>
 
 /*
  * probeio:
Index: i386/i386at/com.c
===================================================================
RCS file: /sources/hurd/gnumach/i386/i386at/Attic/com.c,v
retrieving revision 1.3.2.7
diff -u -p -r1.3.2.7 com.c
--- i386/i386at/com.c	22 Jul 2008 22:28:06 -0000	1.3.2.7
+++ i386/i386at/com.c	24 Jul 2008 02:18:42 -0000
@@ -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;
 
 	unit = minor(tp->t_dev);
 
Index: i386/i386at/model_dep.c
===================================================================
RCS file: /sources/hurd/gnumach/i386/i386at/Attic/model_dep.c,v
retrieving revision 1.9.2.17
diff -u -p -r1.9.2.17 model_dep.c
--- i386/i386at/model_dep.c	20 Jul 2008 17:05:38 -0000	1.9.2.17
+++ i386/i386at/model_dep.c	24 Jul 2008 02:18:42 -0000
@@ -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();
Index: ipc/mach_debug.c
===================================================================
RCS file: /sources/hurd/gnumach/ipc/mach_debug.c,v
retrieving revision 1.2.2.3
diff -u -p -r1.2.2.3 mach_debug.c
--- ipc/mach_debug.c	3 Dec 2006 20:16:16 -0000	1.2.2.3
+++ ipc/mach_debug.c	24 Jul 2008 02:18:42 -0000
@@ -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;
 	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;
 	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;
 	ipc_tree_entry_t tentry;
 	ipc_entry_t table;
 	ipc_entry_num_t tsize;
Index: ipc/mach_port.c
===================================================================
RCS file: /sources/hurd/gnumach/ipc/mach_port.c,v
retrieving revision 1.2.2.6
diff -u -p -r1.2.2.6 mach_port.c
--- ipc/mach_port.c	17 Jul 2008 01:02:01 -0000	1.2.2.6
+++ ipc/mach_port.c	24 Jul 2008 02:18:43 -0000
@@ -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);

Reply via email to