summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/key.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-08 21:08:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-08 21:08:28 +0000
commit9167dcd91e80437eb556bdb53f7acc3a767270aa (patch)
treecd484d07ff123faba91eb943b8427850742dcc97 /usr.bin/vi/common/key.c
parentbb182e3f96eae7b1ae90bf8263558c84f34e4b7f (diff)
Make sure we can exit from a loop in v_key_init() regardless of the locale
we're in; from Ray Lai.
Diffstat (limited to 'usr.bin/vi/common/key.c')
-rw-r--r--usr.bin/vi/common/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/common/key.c b/usr.bin/vi/common/key.c
index 80b094e69c6..11384a2b5e3 100644
--- a/usr.bin/vi/common/key.c
+++ b/usr.bin/vi/common/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.8 2006/01/08 21:05:39 miod Exp $ */
+/* $OpenBSD: key.c,v 1.9 2006/01/08 21:08:27 miod Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -105,7 +105,7 @@ int
v_key_init(sp)
SCR *sp;
{
- CHAR_T ch;
+ u_int ch;
GS *gp;
KEYLIST *kp;
int cnt;