Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Ellzey committed Nov 26, 2015
1 parent b968841 commit 4a78297
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions evhtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3058,9 +3058,13 @@ evhtp_send_reply(evhtp_request_t * request, evhtp_res code) {
}

bev = evhtp_connection_get_bev(c);

bufferevent_lock(bev);
bufferevent_write_buffer(bev, reply_buf);
{
bufferevent_write_buffer(bev, reply_buf);
}
bufferevent_unlock(bev);

evbuffer_drain(reply_buf, -1);
/* evbuffer_free(reply_buf); */
}
Expand Down Expand Up @@ -3639,9 +3643,8 @@ _evhtp_use_threads(evhtp_t * htp,
evhtp_thread_init_cb init_cb,
evhtp_thread_exit_cb exit_cb,
int nthreads, void * arg) {

if (htp == NULL) {
return -1;
return -1;
}

htp->thread_cbarg = arg;
Expand Down Expand Up @@ -3676,6 +3679,7 @@ evhtp_use_threads_wexit(evhtp_t * htp,
int nthreads, void * arg) {
return _evhtp_use_threads(htp, init_cb, exit_cb, nthreads, arg);
}

#endif

#ifndef EVHTP_DISABLE_EVTHR
Expand Down Expand Up @@ -4434,3 +4438,4 @@ unsigned int
evhtp_request_status(evhtp_request_t * r) {
return htparser_get_status(r->conn->parser);
}

0 comments on commit 4a78297

Please sign in to comment.