summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-06 16:30:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-09 00:41:11 +0900
commita6513fde6d4ae0ae6759a9a6b0f805b3e4921c22 (patch)
treea8ae6e511f4d6add4ad34f5972a3ac1c05b0ea9c
parenteb64b7283f17a4380b0b2aa553afc52d2468b980 (diff)
i386/i386at/lpr.c: fix initalization from incompatible pointer type
* i386/i386at/lpr.c (lprprobe): Modify argument types. * i386/i386at/lpr.h (lprprobe): Likewise.
-rw-r--r--i386/i386at/lpr.c4
-rw-r--r--i386/i386at/lpr.h2
2 files changed, 3 insertions, 3 deletions
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);