From e4db871961c43f3bf7f58609b4212482ac8670bf Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 10 Aug 2001 06:00:44 +0000 Subject: [PATCH] Type sanity: use uintptr_t * for read_ivar and u_int8_t instead of u_char --- sys/pccard/pccard_nbk.c | 2 +- sys/pccard/pcicvar.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index e138cce3f6fe..cb4d33f7ef32 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -297,7 +297,7 @@ pccard_release_resource(device_t bus, device_t child, int type, int rid, } static int -pccard_read_ivar(device_t bus, device_t child, int which, u_char *result) +pccard_read_ivar(device_t bus, device_t child, int which, uintptr_t *result) { struct pccard_devinfo *devi = PCCARD_DEVINFO(child); diff --git a/sys/pccard/pcicvar.h b/sys/pccard/pcicvar.h index ff986c95d21f..79d65a8d9c52 100644 --- a/sys/pccard/pcicvar.h +++ b/sys/pccard/pcicvar.h @@ -33,8 +33,8 @@ struct pcic_slot { char revision; /* Device Revision */ struct slot *slt; /* Back ptr to slot */ struct pcic_softc *sc; /* Back pointer to softc */ - u_char (*getb)(struct pcic_slot *, int); - void (*putb)(struct pcic_slot *, int, u_char); + u_int8_t (*getb)(struct pcic_slot *, int); + void (*putb)(struct pcic_slot *, int, u_int8_t); bus_space_tag_t bst; bus_space_handle_t bsh; driver_intr_t *intr;