mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
3069. [cleanup] Silence warnings messages from clang static analysis.
[RT #20256]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: socket.c,v 1.337 2011/02/28 12:48:30 marka Exp $ */
|
||||
/* $Id: socket.c,v 1.338 2011/03/11 06:11:26 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1758,6 +1758,7 @@ doio_recv(isc__socket_t *sock, isc_socketevent_t *dev) {
|
||||
} else {
|
||||
isc_buffer_add(buffer, actual_count);
|
||||
actual_count = 0;
|
||||
POST(actual_count);
|
||||
break;
|
||||
}
|
||||
buffer = ISC_LIST_NEXT(buffer, link);
|
||||
@@ -2037,7 +2038,7 @@ allocate_socket(isc__socketmgr_t *manager, isc_sockettype_t type,
|
||||
*/
|
||||
cmsgbuflen = 0;
|
||||
#if defined(USE_CMSG) && defined(ISC_PLATFORM_HAVEIN6PKTINFO)
|
||||
cmsgbuflen = cmsg_space(sizeof(struct in6_pktinfo));
|
||||
cmsgbuflen += cmsg_space(sizeof(struct in6_pktinfo));
|
||||
#endif
|
||||
#if defined(USE_CMSG) && defined(SO_TIMESTAMP)
|
||||
cmsgbuflen += cmsg_space(sizeof(struct timeval));
|
||||
@@ -2051,7 +2052,7 @@ allocate_socket(isc__socketmgr_t *manager, isc_sockettype_t type,
|
||||
|
||||
cmsgbuflen = 0;
|
||||
#if defined(USE_CMSG) && defined(ISC_PLATFORM_HAVEIN6PKTINFO)
|
||||
cmsgbuflen = cmsg_space(sizeof(struct in6_pktinfo));
|
||||
cmsgbuflen += cmsg_space(sizeof(struct in6_pktinfo));
|
||||
#endif
|
||||
sock->sendcmsgbuflen = cmsgbuflen;
|
||||
if (sock->sendcmsgbuflen != 0U) {
|
||||
@@ -2756,7 +2757,6 @@ isc__socket_close(isc_socket_t *sock0) {
|
||||
isc__socket_t *sock = (isc__socket_t *)sock0;
|
||||
int fd;
|
||||
isc__socketmgr_t *manager;
|
||||
isc_sockettype_t type;
|
||||
|
||||
REQUIRE(VALID_SOCKET(sock));
|
||||
|
||||
@@ -2776,7 +2776,6 @@ isc__socket_close(isc_socket_t *sock0) {
|
||||
INSIST(sock->connect_ev == NULL);
|
||||
|
||||
manager = sock->manager;
|
||||
type = sock->type;
|
||||
fd = sock->fd;
|
||||
sock->fd = -1;
|
||||
memset(sock->name, 0, sizeof(sock->name));
|
||||
|
Reference in New Issue
Block a user