Commit 91abe0a5 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

sess: Polish HTC_RxPipeline()

All call sites pass a non-null char pointer.
parent 28902ab9
......@@ -244,16 +244,16 @@ HTC_RxInit(struct http_conn *htc, struct ws *ws)
}
void
HTC_RxPipeline(struct http_conn *htc, void *p)
HTC_RxPipeline(struct http_conn *htc, char *p)
{
CHECK_OBJ_NOTNULL(htc, HTTP_CONN_MAGIC);
if (p == NULL || (char*)p == htc->rxbuf_e) {
assert(p >= htc->rxbuf_b);
assert(p <= htc->rxbuf_e);
if (p == htc->rxbuf_e) {
htc->pipeline_b = NULL;
htc->pipeline_e = NULL;
} else {
assert((char*)p >= htc->rxbuf_b);
assert((char*)p < htc->rxbuf_e);
htc->pipeline_b = p;
htc->pipeline_e = htc->rxbuf_e;
}
......
......@@ -432,7 +432,7 @@ void SES_Rel(struct sess *sp);
const char * HTC_Status(enum htc_status_e);
void HTC_RxInit(struct http_conn *htc, struct ws *ws);
void HTC_RxPipeline(struct http_conn *htc, void *);
void HTC_RxPipeline(struct http_conn *htc, char *);
enum htc_status_e HTC_RxStuff(struct http_conn *, htc_complete_f *,
vtim_real *t1, vtim_real *t2, vtim_real ti, vtim_real tn, vtim_dur td,
int maxbytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment