Ported to NetBSD (2/2): Add casts for character class detection
NetBSD's character class test macros are defined such that they produce a compiler warning when given a char argument. Adding a cast to the call fixes this.
This commit is contained in:
parent
426a3f8468
commit
849178d60b
2 changed files with 2 additions and 2 deletions
|
|
@ -648,7 +648,7 @@ void h_pprint_char(FILE *f, char c)
|
|||
case '\n': fputs("\\n", f); break;
|
||||
case '\r': fputs("\\r", f); break;
|
||||
default:
|
||||
if(isprint(c)) {
|
||||
if(isprint((int)c)) {
|
||||
fputc(c, f);
|
||||
} else {
|
||||
fprintf(f, "\\x%.2X", c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue