]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence unchecked return
authorMark Andrews <marka@isc.org>
Fri, 14 Jun 2019 07:05:55 +0000 (17:05 +1000)
committerMark Andrews <marka@isc.org>
Mon, 24 Jun 2019 23:50:43 +0000 (19:50 -0400)
lib/isc/unix/socket.c

index fc93d369b531594cb87621c213cbbbe17b0d9c4c..d0e43c15bede2b0ef23149da0d0366c192bdbe10 100644 (file)
@@ -3037,7 +3037,7 @@ internal_accept(isc__socket_t *sock) {
                inc_stats(manager->stats, sock->statsindex[STATID_ACCEPT]);
        } else {
                inc_stats(manager->stats, sock->statsindex[STATID_ACCEPTFAIL]);
-               isc_refcount_decrement(&NEWCONNSOCK(dev)->references);
+               (void)isc_refcount_decrement(&NEWCONNSOCK(dev)->references);
                free_socket((isc__socket_t **)&dev->newsocket);
        }
 
@@ -5160,7 +5160,7 @@ isc_socket_cancel(isc_socket_t *sock0, isc_task_t *task, unsigned int how) {
                                ISC_LIST_UNLINK(sock->accept_list, dev,
                                                ev_link);
 
-                               isc_refcount_decrement(
+                               (void)isc_refcount_decrement(
                                                &NEWCONNSOCK(dev)->references);
                                free_socket((isc__socket_t **)&dev->newsocket);