From 0bef0f78e4e99073746b026ed78d0d4233b5e5d7 Mon Sep 17 00:00:00 2001 From: davem Date: Mon, 23 Oct 1995 12:38:07 +0000 Subject: 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. --- sys/arch/sparc/dev/kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/arch/sparc/dev/kbd.c') 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; -- cgit v1.2.3