summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt/pcvt_drv.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-11-20 15:57:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-11-20 15:57:26 +0000
commitecd1eefababcba78141cf35e53ce1986f3041da8 (patch)
tree6a753b12df8dbc8d426b35ed136631986c0d11da /sys/arch/i386/isa/pcvt/pcvt_drv.c
parent449e79b885b59db7893cf4f923168ccc0a9f7b8f (diff)
careful off handling in mmap routines
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_drv.c b/sys/arch/i386/isa/pcvt/pcvt_drv.c
index 2c60c066b9b..33f2adde5e1 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_drv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_drv.c,v 1.21 1998/06/30 20:51:08 millert Exp $ */
+/* $OpenBSD: pcvt_drv.c,v 1.22 1998/11/20 15:57:25 deraadt Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -521,7 +521,7 @@ do_standard:
int
pcmmap(Dev_t dev, int offset, int nprot)
{
- if (offset > 0x20000)
+ if ((u_int)offset > 0x20000)
return -1;
return i386_btop((0xa0000 + offset));
}