mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 20:59:02 +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 ---- */
|
/* ---- PROXY DEFINITION ---- */
|
||||||
static const struct proxy_op ProxyOpsHttp = {
|
static const struct proxy_op ProxyOpsHttp = {
|
||||||
.node_new = proxy_http_node_new,
|
proxy_http_node_new,
|
||||||
.node_delete = proxy_http_node_delete,
|
proxy_http_node_delete,
|
||||||
.handler = proxy_http_handler,
|
proxy_http_handler,
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct proxy_spec ProxySpecHttp = {
|
const struct proxy_spec ProxySpecHttp = {
|
||||||
.prefix = "http://",
|
"http://",
|
||||||
.type = PROXY_TYPE_HTTP,
|
PROXY_TYPE_HTTP,
|
||||||
.ops = &ProxyOpsHttp,
|
&ProxyOpsHttp,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -235,14 +235,14 @@ static void proxy_socks4_handler(nsock_pool nspool, nsock_event nsevent, void *u
|
|||||||
|
|
||||||
/* ---- PROXY DEFINITION ---- */
|
/* ---- PROXY DEFINITION ---- */
|
||||||
static const struct proxy_op ProxyOpsSocks4 = {
|
static const struct proxy_op ProxyOpsSocks4 = {
|
||||||
.node_new = proxy_socks4_node_new,
|
proxy_socks4_node_new,
|
||||||
.node_delete = proxy_socks4_node_delete,
|
proxy_socks4_node_delete,
|
||||||
.handler = proxy_socks4_handler,
|
proxy_socks4_handler,
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct proxy_spec ProxySpecSocks4 = {
|
const struct proxy_spec ProxySpecSocks4 = {
|
||||||
.prefix = "socks4://",
|
"socks4://",
|
||||||
.type = PROXY_TYPE_SOCKS4,
|
PROXY_TYPE_SOCKS4,
|
||||||
.ops = &ProxyOpsSocks4,
|
&ProxyOpsSocks4,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user