From: Willy Tarreau Date: Sun, 25 Nov 2012 23:57:40 +0000 (+0100) Subject: BUILD: buffer: fix another isprint() warning on solaris X-Git-Tag: v1.5-dev14~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95898ac21189305360eb1c2668213bcdfa94134b;p=thirdparty%2Fhaproxy.git BUILD: buffer: fix another isprint() warning on solaris This one came with commit recent be0efd8. Solaris wants ints, not chars. --- diff --git a/src/buffer.c b/src/buffer.c index 281947ab29..d7f7ae15da 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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"); }