summaryrefslogtreecommitdiff
path: root/usr.sbin/wsmoused/wsmoused.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-24 01:06:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-24 01:06:20 +0000
commit9fa5a397426b739e9289fb6fde63a7b1d505db1c (patch)
treecda1e16693ec05345ea20c73c742be5c2748ebe1 /usr.sbin/wsmoused/wsmoused.c
parenta558abec9359523a726dbcdbdf990d25b9e1fa65 (diff)
more unsigned char casts for ctype
ok jca
Diffstat (limited to 'usr.sbin/wsmoused/wsmoused.c')
-rw-r--r--usr.sbin/wsmoused/wsmoused.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c
index 92d8e66c010..2009ccd98b0 100644
--- a/usr.sbin/wsmoused/wsmoused.c
+++ b/usr.sbin/wsmoused/wsmoused.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.c,v 1.28 2013/04/18 02:29:59 deraadt Exp $ */
+/* $OpenBSD: wsmoused.c,v 1.29 2013/11/24 01:06:19 deraadt Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -182,7 +182,7 @@ static int p2l[MOUSE_MAXBUTTON] = {
static char *
skipspace(char *s)
{
- while (isspace(*s))
+ while (isspace((unsigned char)*s))
++s;
return s;
}
@@ -198,7 +198,7 @@ mouse_installmap(char *arg)
while (*arg) {
arg = skipspace(arg);
s = arg;
- while (isdigit(*arg))
+ while (isdigit((unsigned char)*arg))
++arg;
arg = skipspace(arg);
if ((arg <= s) || (*arg != '='))
@@ -207,9 +207,9 @@ mouse_installmap(char *arg)
arg = skipspace(++arg);
s = arg;
- while (isdigit(*arg))
+ while (isdigit((unsigned char)*arg))
++arg;
- if (arg <= s || (!isspace(*arg) && *arg != '\0'))
+ if (arg <= s || (!isspace((unsigned char)*arg) && *arg != '\0'))
return FALSE;
pbutton = atoi(s);