mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Minor portability improvement in calls to ctype.h macros.
This commit is contained in:
parent
c7e120041d
commit
6ffa10bc90
1 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ bsdtar_expand_char(char *buff, size_t offset, char c)
|
|||
{
|
||||
size_t i = offset;
|
||||
|
||||
if (isprint(c) && c != '\\')
|
||||
if (isprint((unsigned char)c) && c != '\\')
|
||||
buff[i++] = c;
|
||||
else {
|
||||
buff[i++] = '\\';
|
||||
|
|
@ -254,7 +254,7 @@ yes(const char *fmt, ...)
|
|||
buff[l] = 0;
|
||||
|
||||
for (p = buff; *p != '\0'; p++) {
|
||||
if (isspace(0xff & (int)*p))
|
||||
if (isspace((unsigned char)*p))
|
||||
continue;
|
||||
switch(*p) {
|
||||
case 'y': case 'Y':
|
||||
|
|
|
|||
Loading…
Reference in a new issue