mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 11:22:05 +00:00
Added explicit pointer cast.
Reported by Jaebum Shin.
This commit is contained in:
parent
1720606226
commit
6638f749d1
1 changed files with 2 additions and 2 deletions
|
|
@ -154,7 +154,7 @@ struct proxy_spec {
|
|||
int proxy_resolve(const char *host, struct sockaddr *addr, size_t *addrlen);
|
||||
|
||||
static inline struct proxy_node *proxy_ctx_node_current(struct proxy_chain_context *ctx) {
|
||||
return GH_LIST_ELEM_DATA(ctx->px_current);
|
||||
return (struct proxy_node *)GH_LIST_ELEM_DATA(ctx->px_current);
|
||||
}
|
||||
|
||||
static inline struct proxy_node *proxy_ctx_node_next(struct proxy_chain_context *ctx) {
|
||||
|
|
@ -162,7 +162,7 @@ static inline struct proxy_node *proxy_ctx_node_next(struct proxy_chain_context
|
|||
|
||||
next = GH_LIST_ELEM_NEXT(ctx->px_current);
|
||||
if (next)
|
||||
return GH_LIST_ELEM_DATA(next);
|
||||
return (struct proxy_node *)GH_LIST_ELEM_DATA(next);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue