mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-02 21:09:35 -05:00
Remove useless tcp_read_fd member from struct
This commit is contained in:
parent
91bec32cdc
commit
275f18cc8e
2 changed files with 1 additions and 4 deletions
|
|
@ -139,7 +139,7 @@ verbose_print_unbound_socket(struct unbound_socket* ub_sock)
|
|||
if(verbosity >= VERB_ALGO) {
|
||||
log_info("listing of unbound_socket structure:");
|
||||
verbose_print_addr(ub_sock->addr);
|
||||
log_info("s is: %d, fam is: %s, tcp_read_fd is: %d", ub_sock->s, ub_sock->fam == AF_INET?"AF_INET":"AF_INET6", ub_sock->tcp_read_fd);
|
||||
log_info("s is: %d, fam is: %s", ub_sock->s, ub_sock->fam == AF_INET?"AF_INET":"AF_INET6");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -972,7 +972,6 @@ make_sock(int stype, const char* ifname, const char* port,
|
|||
(*ub_sock)->addr = res;
|
||||
(*ub_sock)->s = s;
|
||||
(*ub_sock)->fam = hints->ai_family;
|
||||
(*ub_sock)->tcp_read_fd = -1;
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,8 +112,6 @@ struct unbound_socket {
|
|||
int s;
|
||||
/** address family (AF_INET/IF_INET6) */
|
||||
int fam;
|
||||
/** descriptor returned by accept() syscall for further usage. TODO: actually it might be useless here unlike in NSD where we have no comm_points mechanism with callback pointers for every created communication point */
|
||||
int tcp_read_fd;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue