summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <>2015-10-23 18:47:21 +0000
committermmcc <>2015-10-23 18:47:21 +0000
commit767667654245299fbb1dbd106aeaf7a445fe829b (patch)
tree3caaff25c6efc6279ddd0ba436a82ee40fd34054
parentfbbeb39659d02bb968bbfbf1dd7200def1255ebd (diff)
downloadopenbsd-767667654245299fbb1dbd106aeaf7a445fe829b.tar.gz
openbsd-767667654245299fbb1dbd106aeaf7a445fe829b.tar.bz2
openbsd-767667654245299fbb1dbd106aeaf7a445fe829b.zip
Cast ctype functions' arguments to unsigned char.
-rw-r--r--src/regress/lib/libc/db/dbtest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c
index f024891a56..2616276a27 100644
--- a/src/regress/lib/libc/db/dbtest.c
+++ b/src/regress/lib/libc/db/dbtest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dbtest.c,v 1.13 2015/02/06 23:21:58 millert Exp $ */ 1/* $OpenBSD: dbtest.c,v 1.14 2015/10/23 18:47:21 mmcc Exp $ */
2/* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ 2/* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */
3 3
4/*- 4/*-
@@ -159,7 +159,7 @@ main(int argc, char *argv[])
159 /* Delete the newline, displaying the key/data is easier. */ 159 /* Delete the newline, displaying the key/data is easier. */
160 if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL) 160 if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL)
161 *t = '\0'; 161 *t = '\0';
162 if ((len = strlen(buf)) == 0 || isspace(*p) || *p == '#') 162 if ((len = strlen(buf)) == 0 || isspace((unsigned char)*p) || *p == '#')
163 continue; 163 continue;
164 164
165 /* Convenient gdb break point. */ 165 /* Convenient gdb break point. */
@@ -521,7 +521,7 @@ setflags(s)
521{ 521{
522 char *p; 522 char *p;
523 523
524 for (; isspace(*s); ++s); 524 for (; isspace((unsigned char)*s); ++s);
525 if (*s == '\n' || *s == '\0') 525 if (*s == '\n' || *s == '\0')
526 return (0); 526 return (0);
527 if ((p = strchr(s, '\n')) != NULL) 527 if ((p = strchr(s, '\n')) != NULL)
@@ -586,7 +586,7 @@ setinfo(type, s)
586 if ((eq = strchr(s, '=')) == NULL) 586 if ((eq = strchr(s, '=')) == NULL)
587 dberr("%s: illegal structure set statement", s); 587 dberr("%s: illegal structure set statement", s);
588 *eq++ = '\0'; 588 *eq++ = '\0';
589 if (!isdigit(*eq)) 589 if (!isdigit((unsigned char)*eq))
590 dberr("%s: structure set statement must be a number", s); 590 dberr("%s: structure set statement must be a number", s);
591 591
592 switch (type) { 592 switch (type) {
@@ -679,7 +679,7 @@ rfile(name, lenp)
679 int fd; 679 int fd;
680 char *np; 680 char *np;
681 681
682 for (; isspace(*name); ++name); 682 for (; isspace((unsigned char)*name); ++name);
683 if ((np = strchr(name, '\n')) != NULL) 683 if ((np = strchr(name, '\n')) != NULL)
684 *np = '\0'; 684 *np = '\0';
685 if ((fd = open(name, O_RDONLY, 0)) < 0 || 685 if ((fd = open(name, O_RDONLY, 0)) < 0 ||