mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
test: use evutil_timerclear over timerclear
This commit is contained in:
parent
b202a72be4
commit
f5b6104319
@ -810,7 +810,7 @@ http_bad_request_test(void *arg)
|
|||||||
bufferevent_write(bev, http_request, strlen(http_request));
|
bufferevent_write(bev, http_request, strlen(http_request));
|
||||||
|
|
||||||
shutdown(fd, EVUTIL_SHUT_WR);
|
shutdown(fd, EVUTIL_SHUT_WR);
|
||||||
timerclear(&tv);
|
evutil_timerclear(&tv);
|
||||||
tv.tv_usec = 10000;
|
tv.tv_usec = 10000;
|
||||||
event_base_once(data->base, -1, EV_TIMEOUT, http_badreq_successcb, bev, &tv);
|
event_base_once(data->base, -1, EV_TIMEOUT, http_badreq_successcb, bev, &tv);
|
||||||
|
|
||||||
@ -846,7 +846,7 @@ http_bad_request_test(void *arg)
|
|||||||
|
|
||||||
bufferevent_write(bev, http_request, strlen(http_request));
|
bufferevent_write(bev, http_request, strlen(http_request));
|
||||||
|
|
||||||
timerclear(&tv);
|
evutil_timerclear(&tv);
|
||||||
tv.tv_usec = 10000;
|
tv.tv_usec = 10000;
|
||||||
event_base_once(data->base, -1, EV_TIMEOUT, http_badreq_successcb, bev, &tv);
|
event_base_once(data->base, -1, EV_TIMEOUT, http_badreq_successcb, bev, &tv);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user