mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-13 06:54:37 +00:00
BUILD: buffer: fix another isprint() warning on solaris
This one came with commit recent be0efd8
. Solaris wants ints, not chars.
This commit is contained in:
parent
11d4ec85d1
commit
95898ac211
@ -217,7 +217,7 @@ void buffer_dump(FILE *o, struct buffer *b, int from, int to)
|
||||
}
|
||||
fprintf(o, " ");
|
||||
for (i = 0; (from + i < to) && (i < 16) ; i++) {
|
||||
fprintf(o, "%c", isprint(b->data[from + i]) ? b->data[from + i] : '.') ;
|
||||
fprintf(o, "%c", isprint((int)b->data[from + i]) ? b->data[from + i] : '.') ;
|
||||
if ((((from + i) & 15) == 15) && ((from + i) != to-1))
|
||||
fprintf(o, "\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user