mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 11:49:01 +00:00
Removed designated structure initializers that break
compilation with MSVC. This was reported by Gisle Vanem.
This commit is contained in:
@@ -205,14 +205,14 @@ static void proxy_http_handler(nsock_pool nspool, nsock_event nsevent, void *uda
|
||||
|
||||
/* ---- PROXY DEFINITION ---- */
|
||||
static const struct proxy_op ProxyOpsHttp = {
|
||||
.node_new = proxy_http_node_new,
|
||||
.node_delete = proxy_http_node_delete,
|
||||
.handler = proxy_http_handler,
|
||||
proxy_http_node_new,
|
||||
proxy_http_node_delete,
|
||||
proxy_http_handler,
|
||||
};
|
||||
|
||||
const struct proxy_spec ProxySpecHttp = {
|
||||
.prefix = "http://",
|
||||
.type = PROXY_TYPE_HTTP,
|
||||
.ops = &ProxyOpsHttp,
|
||||
"http://",
|
||||
PROXY_TYPE_HTTP,
|
||||
&ProxyOpsHttp,
|
||||
};
|
||||
|
||||
|
||||
@@ -235,14 +235,14 @@ static void proxy_socks4_handler(nsock_pool nspool, nsock_event nsevent, void *u
|
||||
|
||||
/* ---- PROXY DEFINITION ---- */
|
||||
static const struct proxy_op ProxyOpsSocks4 = {
|
||||
.node_new = proxy_socks4_node_new,
|
||||
.node_delete = proxy_socks4_node_delete,
|
||||
.handler = proxy_socks4_handler,
|
||||
proxy_socks4_node_new,
|
||||
proxy_socks4_node_delete,
|
||||
proxy_socks4_handler,
|
||||
};
|
||||
|
||||
const struct proxy_spec ProxySpecSocks4 = {
|
||||
.prefix = "socks4://",
|
||||
.type = PROXY_TYPE_SOCKS4,
|
||||
.ops = &ProxyOpsSocks4,
|
||||
"socks4://",
|
||||
PROXY_TYPE_SOCKS4,
|
||||
&ProxyOpsSocks4,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user