Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen appease -Wcast-qual.



details:   https://anonhg.NetBSD.org/src/rev/c7a05767d5b4
branches:  trunk
changeset: 581395:c7a05767d5b4
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Jun 01 12:05:28 2005 +0000

description:
appease -Wcast-qual.

diffstat:

 sys/arch/xen/xen/ctrl_if.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d1e9025742e4 -r c7a05767d5b4 sys/arch/xen/xen/ctrl_if.c
--- a/sys/arch/xen/xen/ctrl_if.c        Wed Jun 01 11:59:13 2005 +0000
+++ b/sys/arch/xen/xen/ctrl_if.c        Wed Jun 01 12:05:28 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ctrl_if.c,v 1.9 2005/05/31 12:44:29 yamt Exp $ */
+/*     $NetBSD: ctrl_if.c,v 1.10 2005/06/01 12:05:28 yamt Exp $        */
 
 /******************************************************************************
  * ctrl_if.c
@@ -9,7 +9,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ctrl_if.c,v 1.9 2005/05/31 12:44:29 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ctrl_if.c,v 1.10 2005/06/01 12:05:28 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -67,7 +67,7 @@
 
 static void __ctrl_if_rx_tasklet(unsigned long data);
 
-#define get_ctrl_if() ((control_if_t *)((char *)HYPERVISOR_shared_info + 2048))
+#define get_ctrl_if() ((control_if_t *)((uintptr_t)HYPERVISOR_shared_info + 2048))
 #define TX_FULL(_c)   \
     (((_c)->tx_req_prod - ctrl_if_tx_resp_cons) == CONTROL_RING_SIZE)
 



Home | Main Index | Thread Index | Old Index