diff options
author | Michael Graff <mgraff@isc.org> | 2007-10-01 14:47:35 +0000 |
---|---|---|
committer | Michael Graff <mgraff@isc.org> | 2007-10-01 14:47:35 +0000 |
commit | 5eab8594b6671245928a42fee05e202cf904d0c7 (patch) | |
tree | 4570f6ea3d38b212f7c1912e64936731b6b5e274 /common/print.c | |
parent | 1418fd1103e61f426d8d38776029e25e7788b3da (diff) | |
download | isc-dhcp-5eab8594b6671245928a42fee05e202cf904d0c7.tar.gz |
Cast arguments for isspace(), isascii(), and other is*() functions to int.
Diffstat (limited to 'common/print.c')
-rw-r--r-- | common/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/print.c b/common/print.c index c7bad104..44e0ce15 100644 --- a/common/print.c +++ b/common/print.c @@ -45,7 +45,7 @@ char *quotify_string (const char *s, const char *file, int line) for (sp = s; sp && *sp; sp++) { if (*sp == ' ') len++; - else if (!isascii (*sp) || !isprint (*sp)) + else if (!isascii ((int)*sp) || !isprint ((int)*sp)) len += 4; else if (*sp == '"' || *sp == '\\') len += 2; @@ -59,7 +59,7 @@ char *quotify_string (const char *s, const char *file, int line) for (sp = s; sp && *sp; sp++) { if (*sp == ' ') *nsp++ = ' '; - else if (!isascii (*sp) || !isprint (*sp)) { + else if (!isascii ((int)*sp) || !isprint ((int)*sp)) { sprintf (nsp, "\\%03o", *(const unsigned char *)sp); nsp += 4; |