Remove useless tcp_read_fd member from struct

This commit is contained in:
W.C.A. Wijngaards 2020-12-09 11:37:04 +01:00
parent 91bec32cdc
commit 275f18cc8e
2 changed files with 1 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
};
/**