diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-11-07 17:25:33 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-11-07 17:25:33 +0000 |
| commit | a885bb6007cdb7b5551b96a5842c65ecbe4902b6 (patch) | |
| tree | 61fe3ec9704adad996cb7c043acee8fb85ab79d3 /sys/dev | |
| parent | 9e14a48a03753f3afd4143878b71f2c8f29844b0 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ppbus/pps.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ppbus/pps.c b/sys/dev/ppbus/pps.c index 70758deedced..b20175700704 100644 --- a/sys/dev/ppbus/pps.c +++ b/sys/dev/ppbus/pps.c @@ -108,9 +108,9 @@ ppsattach(device_t dev) { struct pps_data *sc = DEVTOSOFTC(dev); device_t ppbus = device_get_parent(dev); - int irq, zero = 0; dev_t d; - int unit, i; + intptr_t irq; + int i, unit, zero = 0; bzero(sc, sizeof(struct pps_data)); /* XXX doesn't newbus do this? */ @@ -182,7 +182,7 @@ ppsattach(device_t dev) sc->devs[i] = d; sc->pps[i].ppscap = PPS_CAPTUREASSERT | PPS_CAPTURECLEAR; d->si_drv1 = sc; - d->si_drv2 = (void*)i; + d->si_drv2 = (void *)(intptr_t)i; pps_init(&sc->pps[i]); } } while (0); @@ -196,7 +196,7 @@ static int ppsopen(dev_t dev, int flags, int fmt, struct thread *td) { struct pps_data *sc = dev->si_drv1; - int subdev = (int)dev->si_drv2; + int subdev = (intptr_t)dev->si_drv2; int error, i; if (!sc->busy) { @@ -232,7 +232,7 @@ static int ppsclose(dev_t dev, int flags, int fmt, struct thread *td) { struct pps_data *sc = dev->si_drv1; - int subdev = (int)dev->si_drv2; + int subdev = (intptr_t)dev->si_drv2; sc->pps[subdev].ppsparam.mode = 0; /* PHK ??? */ sc->busy &= ~(1 << subdev); @@ -298,7 +298,7 @@ static int ppsioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td) { struct pps_data *sc = dev->si_drv1; - int subdev = (int)dev->si_drv2; + int subdev = (intptr_t)dev->si_drv2; return (pps_ioctl(cmd, data, &sc->pps[subdev])); } |
