-/* $OpenBSD: cvs.c,v 1.152 2011/09/20 12:43:45 nicm Exp $ */
+/* $OpenBSD: cvs.c,v 1.153 2014/01/08 13:23:55 okan Exp $ */
/*
* Copyright (c) 2006, 2007 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
/* sanity check on the name */
for (cp = var; *cp != '\0'; cp++)
- if (!isalnum(*cp) && (*cp != '_')) {
+ if (!isalnum((unsigned char)*cp) && (*cp != '_')) {
cvs_log(LP_ERR,
"variable name `%s' contains invalid characters",
var);
-/* $OpenBSD: getlog.c,v 1.96 2013/06/03 17:04:35 jcs Exp $ */
+/* $OpenBSD: getlog.c,v 1.97 2014/01/08 13:23:55 okan Exp $ */
/*
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
delim = '\0';
last = "\0";
} else {
- while (*last && isspace(*last))
+ while (*last && isspace((unsigned char)*last))
last++;
}
-/* $OpenBSD: modules.c,v 1.16 2009/03/29 19:17:26 joris Exp $ */
+/* $OpenBSD: modules.c,v 1.17 2014/01/08 13:23:55 okan Exp $ */
/*
* Copyright (c) 2008 Joris Vink <joris@openbsd.org>
*
flags = 0;
p = val = line;
- while (!isspace(*p) && *p != '\0')
+ while (!isspace((unsigned char)*p) && *p != '\0')
p++;
if (*p == '\0')
*(p++) = '\0';
module = val;
- while (isspace(*p))
+ while (isspace((unsigned char)*p))
p++;
if (*p == '\0')
goto bad;
val = p;
- while (!isspace(*p) && *p != '\0')
+ while (!isspace((unsigned char)*p) && *p != '\0')
p++;
while (val[0] == '-') {
p = val;
- while (!isspace(*p) && *p != '\0')
+ while (!isspace((unsigned char)*p) && *p != '\0')
p++;
if (*p == '\0')
}
val = p;
- while (!isspace(*val) && *val != '\0')
+ while (!isspace((unsigned char)*val) && *val != '\0')
val++;
if (*val == '\0')
goto bad;
for (sp = val; *sp != '\0'; sp = dp) {
dp = sp;
- while (!isspace(*dp) && *dp != '\0')
+ while (!isspace((unsigned char)*dp) && *dp != '\0')
dp++;
if (*dp != '\0')
*(dp++) = '\0';
-/* $OpenBSD: rcs.c,v 1.310 2011/05/02 22:22:54 chl Exp $ */
+/* $OpenBSD: rcs.c,v 1.311 2014/01/08 13:23:55 okan Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
rcs_sym_check(const char *sym)
{
int ret;
- const char *cp;
+ const unsigned char *cp;
ret = 1;
cp = sym;
-/* $OpenBSD: rcsnum.c,v 1.54 2012/07/02 21:56:25 tedu Exp $ */
+/* $OpenBSD: rcsnum.c,v 1.55 2014/01/08 13:23:55 okan Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
nump->rn_id[0] = 0;
for (sp = str;; sp++) {
- if (!isdigit(*sp) && (*sp != '.'))
+ if (!isdigit((unsigned char)*sp) && (*sp != '.'))
break;
if (*sp == '.') {
-/* $OpenBSD: trigger.c,v 1.20 2011/05/20 19:22:47 nicm Exp $ */
+/* $OpenBSD: trigger.c,v 1.21 2014/01/08 13:23:55 okan Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2008 Jonathan Armani <dbd@asystant.net>
}
/* before doing any stuff, check if the command starts with % */
- for (p = cmd; *p != '%' && !isspace(*p) && *p != '\0'; p++)
+ for (p = cmd;
+ *p != '%' && !isspace((unsigned char)*p) && *p != '\0'; p++)
;
if (*p == '%')
return (NULL);
lineno++;
- for (p = currentline; isspace(*p); p++)
+ for (p = currentline; isspace((unsigned char)*p); p++)
;
if (*p == '\0' || *p == '#')
continue;
- for (q = p; !isspace(*q) && *q != '\0'; q++)
+ for (q = p; !isspace((unsigned char)*q) && *q != '\0'; q++)
;
if (*q == '\0')
*q++ = '\0';
regex = p;
- for (; isspace(*q); q++)
+ for (; isspace((unsigned char)*q); q++)
;
if (*q == '\0')