From 0abe4eba83c45c1145df4f7756a69258134601b4 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 6 Dec 2016 09:54:13 +0300 Subject: [PATCH] sample/http-connect: fix compilation with VS2010 Fixes: nmathewson/Libevent#137 --- sample/http-connect.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sample/http-connect.c b/sample/http-connect.c index d6c7b5ea..a44d001a 100644 --- a/sample/http-connect.c +++ b/sample/http-connect.c @@ -97,10 +97,8 @@ int main(int argc, const char **argv) VERIFY(base = event_base_new()); VERIFY(evcon = evhttp_connection_base_new(base, NULL, evhttp_uri_get_host(proxy), evhttp_uri_get_port(proxy))); - connect_base = (struct connect_base){ - .evcon = evcon, - .location = location, - }; + connect_base.evcon = evcon; + connect_base.location = location; VERIFY(req = evhttp_request_new(connect_cb, &connect_base)); evhttp_add_header(req->output_headers, "Connection", "keep-alive");