[head tinderbox] failure on i386/i386

Ed Schouten ed at 80386.nl
Wed Oct 22 08:03:28 UTC 2008


* FreeBSD Tinderbox <tinderbox at freebsd.org> wrote:
> cc1: warnings being treated as errors
> /src/sys/dev/ppbus/lpt.c: In function 'lpt_attach':
> /src/sys/dev/ppbus/lpt.c:402: warning: assignment makes pointer from integer without a cast
> /src/sys/dev/ppbus/lpt.c: In function 'lptopen':
> /src/sys/dev/ppbus/lpt.c:479: warning: assignment makes integer from pointer without a cast

What about this?

%%%
--- sys/dev/ppbus/lpt.c
+++ sys/dev/ppbus/lpt.c
@@ -392,14 +392,12 @@
 	lpt_release_ppbus(dev);
 
 	sc->dev = dev;
-	sc->cdev = make_dev(&lpt_cdevsw, unit,
+	sc->cdev = make_dev(&lpt_cdevsw, 0,
 	    UID_ROOT, GID_WHEEL, 0600, LPT_NAME "%d", unit);
 	sc->cdev->si_drv1 = sc;
-	sc->cdev->si_drv2 = 0;
-	sc->cdev_bypass = make_dev(&lpt_cdevsw, unit,
+	sc->cdev_bypass = make_dev(&lpt_cdevsw, LP_BYPASS,
 	    UID_ROOT, GID_WHEEL, 0600, LPT_NAME "%d.ctl", unit);
 	sc->cdev_bypass->si_drv1 = sc;
-	sc->cdev_bypass->si_drv2 = LP_BYPASS;
 	return (0);
 }
 
@@ -476,7 +474,7 @@
 	} else
 		sc->sc_state |= LPTINIT;
 
-	sc->sc_flags = dev->si_drv2;
+	sc->sc_flags = dev2unit(dev);
 
 	/* Check for open with BYPASS flag set. */
 	if (sc->sc_flags & LP_BYPASS) {
%%%

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20081022/0b3ecca1/attachment.pgp


More information about the freebsd-current mailing list