int http_GetStatus(struct http *hp);
int http_HdrIs(struct http *hp, const char *hdr, const char *val);
int http_GetTail(struct http *hp, unsigned len, char **b, char **e);
-int http_Read(struct http *hp, int fd, char *b, unsigned len);
+int http_Read(struct http *hp, int fd, void *b, unsigned len);
void http_RecvHead(struct http *hp, int fd, struct event_base *eb, http_callback_f *func, void *arg);
int http_DissectRequest(struct http *sp, int fd);
int http_DissectResponse(struct http *sp, int fd);
/* Read from fd, but soak up any tail first */
int
-http_Read(struct http *hp, int fd, char *b, unsigned len)
+http_Read(struct http *hp, int fd, void *p, unsigned len)
{
int i;
unsigned u;
+ char *b = p;
u = 0;
if (hp->t < hp->v) {