From: Azat Khuzhin <a3at.mail@gmail.com>
Date: Mon, 1 May 2017 18:56:27 +0000 (+0300)
Subject: test: do not use .fieldname in structure initializations (fixes win32)
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15da23cfdbeb5d5b4eeafca0cd93962c26641ae5;p=libevent

test: do not use .fieldname in structure initializations (fixes win32)

Fixes: #497
---

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;