summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authordavem <davem@cvs.openbsd.org>1995-10-23 12:38:07 +0000
committerdavem <davem@cvs.openbsd.org>1995-10-23 12:38:07 +0000
commit0bef0f78e4e99073746b026ed78d0d4233b5e5d7 (patch)
treeb52f2b1c49a611cd7652ec8b8e9625c481027bad /sys
parent5b820b76535bc49e163a07eee72c631244b96c14 (diff)
Add 'u_char' cast to 'HOLE' assignment, HOLE has 10 significant bits
of value which makes it an integer and gcc complains. Shut it up.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/kbd.c b/sys/arch/sparc/dev/kbd.c
index 1a2f3553902..194da8fdd6e 100644
--- a/sys/arch/sparc/dev/kbd.c
+++ b/sys/arch/sparc/dev/kbd.c
@@ -605,7 +605,7 @@ kbdioctl(dev_t dev, u_long cmd, register caddr_t data, int flag, struct proc *p)
* This is X11 asking if a type 3 keyboard is
* really a type 3 keyboard. Say yes.
*/
- ((struct okiockey *)data)->kio_entry = HOLE;
+ ((struct okiockey *)data)->kio_entry = (u_char) HOLE;
return (0);
}
break;