mirror of
https://github.com/nmap/nmap.git
synced 2026-09-01 07:52:57 +00:00
Removed designated structure initializers that break
compilation with MSVC. This was reported by Gisle Vanem.
This commit is contained in:
parent
f90d107b40
commit
cce3012ac4
2 changed files with 12 additions and 12 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue