From 300a0dc6e09bc2a8d0fb3e1f4935269f414a8a8d Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 1 May 2017 21:56:27 +0300 Subject: [PATCH] test: do not use .fieldname in structure initializations (fixes win32) Fixes: #497 (cherry picked from commit 15da23cfdbeb5d5b4eeafca0cd93962c26641ae5) --- test/regress_http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/regress_http.c b/test/regress_http.c index e9ead77e..58ccf1f7 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -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; -- 2.40.0