Subject: Re: CVS commit: src/sys
To: None <christos@netbsd.org>
From: Andreas Wrede <andreas@planix.com>
List: source-changes
Date: 03/05/2007 17:29:38
--Apple-Mail-1--594433817
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed


On Mar 4, 2007, at 1:03 , Christos Zoulas wrote:

> Log Message:
> Kill caddr_t; there will be some MI fallout, but it will be fixed  
> shortly.

One more fallout:

/u1/netbsd-current/src/sys/altq/altq_subr.c: In function  
'extract_ports4':
/u1/netbsd-current/src/sys/altq/altq_subr.c:1088: warning: pointer of  
type 'void *' used in arithmetic
/u1/netbsd-current/src/sys/altq/altq_subr.c:1098: warning: pointer of  
type 'void *' used in arithmetic

and fix:


--Apple-Mail-1--594433817
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name=altq.patch
Content-Disposition: attachment;
	filename=altq.patch

Index: altq_subr.c
===================================================================
RCS file: /cvsroot/src/sys/altq/altq_subr.c,v
retrieving revision 1.20
diff -u -r1.20 altq_subr.c
--- altq_subr.c	4 Mar 2007 05:59:02 -0000	1.20
+++ altq_subr.c	5 Mar 2007 22:24:50 -0000
@@ -1085,7 +1085,7 @@
 		if (fin->fi_gpi == 0){
 			u_int32_t *gpi;
 
-			gpi = (u_int32_t *)(mtod(m0, void *) + off);
+			gpi = (u_int32_t *)(mtod(m0, char *) + off);
 			fin->fi_gpi   = *gpi;
 		}
 		fin->fi_proto = proto;
@@ -1095,7 +1095,7 @@
 			/* get next header and header length */
 			struct _opt6 *opt6;
 
-			opt6 = (struct _opt6 *)(mtod(m0, void *) + off);
+			opt6 = (struct _opt6 *)(mtod(m0, char *) + off);
 			proto = opt6->opt6_nxt;
 			off += 8 + (opt6->opt6_hlen * 4);
 			if (fin->fi_gpi == 0 && m0->m_len >= off + 8)

--Apple-Mail-1--594433817
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



-- 
     aew


--Apple-Mail-1--594433817--