]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: buffer: fix another isprint() warning on solaris
authorWilly Tarreau <w@1wt.eu>
Sun, 25 Nov 2012 23:57:40 +0000 (00:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 25 Nov 2012 23:57:40 +0000 (00:57 +0100)
This one came with commit recent be0efd8. Solaris wants ints, not chars.

src/buffer.c

index 281947ab29a8fb1432a4ea87e807e1c8b0c94b2c..d7f7ae15da2578ac7e763b0b5f44d28fbe49227d 100644 (file)
@@ -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");
                }