diff options
| author | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-01-19 11:31:22 +0000 |
|---|---|---|
| committer | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-01-19 11:31:22 +0000 |
| commit | f359876ff18247bbcb529c7e385c10e552315ad0 (patch) | |
| tree | 3bff0dfc583d72a522685bbd8031f149935ace00 /sys/dev/fb | |
| parent | 8bbbb12f07b5a179a1a8c94e58ca2798fdcf3e43 (diff) | |
Notes
Diffstat (limited to 'sys/dev/fb')
| -rw-r--r-- | sys/dev/fb/fb.c | 7 | ||||
| -rw-r--r-- | sys/dev/fb/fbreg.h | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c index faa9c2040640..99d15f852a37 100644 --- a/sys/dev/fb/fb.c +++ b/sys/dev/fb/fb.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: fb.c,v 1.1 1999/01/09 02:44:49 yokota Exp $ + * $Id: fb.c,v 1.2 1999/01/12 10:35:50 yokota Exp $ */ #include "fb.h" @@ -394,8 +394,9 @@ fb_dump_adp_info(char *driver, video_adapter_t *adp, int level) adp->va_initial_mode, adp->va_initial_bios_mode, adp->va_mode); printf("%s%d: window:0x%x size:%dk gran:%dk, buf:0x%x size:%dk\n", DRIVER_NAME, adp->va_index, - adp->va_window, adp->va_window_size/1024, adp->va_window_gran/1024, - adp->va_buffer, adp->va_buffer_size/1024); + adp->va_window, (int)adp->va_window_size/1024, + (int)adp->va_window_gran/1024, adp->va_buffer, + (int)adp->va_buffer_size/1024); } void diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h index ee5b1f2f2fee..46f0343d0edd 100644 --- a/sys/dev/fb/fbreg.h +++ b/sys/dev/fb/fbreg.h @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: $ + * $Id: fbreg.h,v 1.1 1999/01/09 02:44:49 yokota Exp $ */ #ifndef _DEV_FB_FBREG_H_ @@ -35,9 +35,9 @@ /* some macros */ #ifdef __i386__ -#define bcopy_toio(s, d, c) generic_bcopy(s, d, c) -#define bcopy_fromio(s, d, c) generic_bcopy(s, d, c) -#define bzero_io(d, c) generic_bzero(d, c) +#define bcopy_toio(s, d, c) generic_bcopy((void *)(s), (void *)(d), c) +#define bcopy_fromio(s, d, c) generic_bcopy((void *)(s), (void *)(d), c) +#define bzero_io(d, c) generic_bzero((void *)(d), c) void generic_bcopy(const void *s, void *d, size_t c); void generic_bzero(void *d, size_t c); #else /* !__i386__ */ |
