[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/18] i386/i386at/lpr.c: fix initalization from incompatible poi
From: |
Marin Ramesa |
Subject: |
[PATCH 18/18] i386/i386at/lpr.c: fix initalization from incompatible pointer type |
Date: |
Fri, 6 Dec 2013 16:30:00 +0100 |
* 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(-)
diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c
index 8e065c2..f2fd23e 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 0ca862a..db622b8 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);
--
1.8.1.4
- [PATCH 11/18] kern/exception.c: move struct definition to a header file, (continued)
- [PATCH 11/18] kern/exception.c: move struct definition to a header file, Marin Ramesa, 2013/12/06
- [PATCH 14/18] Fix initialization from incompatible pointer type, Marin Ramesa, 2013/12/06
- [PATCH 13/18] kern/machine.c: fix implicit declaration of function, Marin Ramesa, 2013/12/06
- [PATCH 15/18] i386/i386at/com.c: fix initialization from incompatible pointer type, Marin Ramesa, 2013/12/06
- [PATCH 16/18] i386/i386at/com.c: fix assignment from incompatible pointer type, Marin Ramesa, 2013/12/06
- [PATCH 17/18] i386/i386at/kd_event.c: fix difference in signedness, Marin Ramesa, 2013/12/06
- [PATCH 18/18] i386/i386at/lpr.c: fix initalization from incompatible pointer type,
Marin Ramesa <=