mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
test: do not use .fieldname in structure initializations (fixes win32)
Fixes: #497 (cherry picked from commit 15da23cfdbeb5d5b4eeafca0cd93962c26641ae5)
This commit is contained in:
parent
822d646276
commit
300a0dc6e0
@ -3607,7 +3607,7 @@ http_simple_test_impl(void *arg, int ssl, int dirty)
|
||||
struct evhttp_connection *evcon = NULL;
|
||||
struct evhttp_request *req = NULL;
|
||||
struct bufferevent *bev;
|
||||
struct http_server hs = { .port = 0, .ssl = ssl, };
|
||||
struct http_server hs = { 0, ssl, NULL, };
|
||||
struct evhttp *http = http_setup(&hs.port, data->base, ssl ? HTTP_BIND_SSL : 0);
|
||||
|
||||
exit_base = data->base;
|
||||
@ -3650,7 +3650,7 @@ http_connection_retry_test_basic(void *arg, const char *addr, struct evdns_base
|
||||
struct evhttp_request *req = NULL;
|
||||
struct timeval tv, tv_start, tv_end;
|
||||
struct bufferevent *bev;
|
||||
struct http_server hs = { .port = 0, .ssl = ssl, };
|
||||
struct http_server hs = { 0, ssl, NULL, };
|
||||
struct evhttp *http = http_setup(&hs.port, data->base, ssl ? HTTP_BIND_SSL : 0);
|
||||
|
||||
exit_base = data->base;
|
||||
|
Loading…
x
Reference in New Issue
Block a user