isa_compat warning patch

Alexey Slynko slynko at tronet.ru
Wed Jan 18 09:21:10 PST 2006


Hi,

1) Add express type cast
Index: sys/bus/isa/i386/isa_compat.c
===================================================================
RCS file: /mnt/share/dragonfly-cvs/src/sys/bus/isa/i386/isa_compat.c,v
retrieving revision 1.9
diff -u -r1.9 isa_compat.c
--- sys/bus/isa/i386/isa_compat.c	24 May 2005 20:58:50 -0000	1.9
+++ sys/bus/isa/i386/isa_compat.c	18 Jan 2006 14:43:30 -0000
@@ -258,7 +258,7 @@
 		op = ((struct isa_compat_driver *)device_get_driver(dev))->op;
 		error = BUS_SETUP_INTR(device_get_parent(dev), dev,
 				       res.irq, op->type,
-				       dvp->id_intr,
+				       (driver_intr_t *)dvp->id_intr,
 				       (void *)(uintptr_t)dvp->id_unit,
 				       &ih, NULL);
 		if (error)




More information about the Submit mailing list