From a6513fde6d4ae0ae6759a9a6b0f805b3e4921c22 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Fri, 6 Dec 2013 16:30:00 +0100 Subject: i386/i386at/lpr.c: fix initalization from incompatible pointer type * i386/i386at/lpr.c (lprprobe): Modify argument types. * i386/i386at/lpr.h (lprprobe): Likewise. --- i386/i386at/lpr.c | 4 ++-- i386/i386at/lpr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'i386/i386at') diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c index 3942335..218f20d 100644 --- a/i386/i386at/lpr.c +++ b/i386/i386at/lpr.c @@ -63,8 +63,8 @@ int lpr_alive[NLPR]; int lprprobe(port, dev) -int port; -struct bus_device *dev; +vm_offset_t port; +struct bus_ctlr *dev; { u_short addr = (u_short) dev->address; int unit = dev->unit; diff --git a/i386/i386at/lpr.h b/i386/i386at/lpr.h index 820d0ab..d2b9d4b 100644 --- a/i386/i386at/lpr.h +++ b/i386/i386at/lpr.h @@ -36,7 +36,7 @@ #define INTR_ENAB(addr) (addr + 2) extern void lprintr(int unit); -int lprprobe(int port, struct bus_device *dev); +int lprprobe(vm_offset_t port, struct bus_ctlr *dev); void lprstop(struct tty *tp, int flags); void lprstart(struct tty *tp); void lprattach(struct bus_device *dev); -- cgit v1.2.3