diff options
author | jhb <jhb@FreeBSD.org> | 2008-10-22 15:00:22 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-10-22 15:00:22 +0000 |
commit | c16b8be4793f74b96b99f111cd2dafdd854c0e9e (patch) | |
tree | 4e31270f57aac047d4234b11e1fc842ee781adde /sys/dev/ppbus/lpt.c | |
parent | f864c915d793f375a0376b4bd34c2a42dc90f58b (diff) | |
download | FreeBSD-src-c16b8be4793f74b96b99f111cd2dafdd854c0e9e.zip FreeBSD-src-c16b8be4793f74b96b99f111cd2dafdd854c0e9e.tar.gz |
Fix build breakage.
Pointy hat: jhb
Diffstat (limited to 'sys/dev/ppbus/lpt.c')
-rw-r--r-- | sys/dev/ppbus/lpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index 9bd92be..f6e034c 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -399,7 +399,7 @@ lpt_attach(device_t dev) sc->cdev_bypass = make_dev(&lpt_cdevsw, unit, UID_ROOT, GID_WHEEL, 0600, LPT_NAME "%d.ctl", unit); sc->cdev_bypass->si_drv1 = sc; - sc->cdev_bypass->si_drv2 = LP_BYPASS; + sc->cdev_bypass->si_drv2 = (void *)LP_BYPASS; return (0); } @@ -476,7 +476,7 @@ lptopen(struct cdev *dev, int flags, int fmt, struct thread *td) } else sc->sc_state |= LPTINIT; - sc->sc_flags = dev->si_drv2; + sc->sc_flags = (uintptr_t)dev->si_drv2; /* Check for open with BYPASS flag set. */ if (sc->sc_flags & LP_BYPASS) { |