test: use evutil_timerclear over timerclear

This commit is contained in:
fanquake 2024-05-20 11:53:24 +01:00 committed by Azat Khuzhin
parent b202a72be4
commit f5b6104319

View File

@ -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);