2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE()

In couple places, we have missed INSIST(0) or ISC_UNREACHABLE()
replacement on some branches with UNREACHABLE().  Replace all
ISC_UNREACHABLE() or INSIST(0) calls with UNREACHABLE().
This commit is contained in:
Ondřej Surý
2022-03-28 12:59:43 +02:00
parent 7dbc843496
commit 4dceab142d
8 changed files with 13 additions and 11 deletions

View File

@@ -2273,7 +2273,7 @@ isc__nm_process_sock_buffer(isc_nmsocket_t *sock) {
}
break;
default:
INSIST(0);
UNREACHABLE();
}
}
}
@@ -2799,7 +2799,6 @@ isc__nmsocket_reset(isc_nmsocket_t *sock) {
REQUIRE(sock->parent == NULL);
break;
default:
INSIST(0);
UNREACHABLE();
break;
}
@@ -3493,7 +3492,6 @@ isc_nm_set_maxage(isc_nmhandle_t *handle, const uint32_t ttl) {
case isc_nm_tlssocket:
#endif /* HAVE_LIBNGHTTP2 */
default:
INSIST(0);
UNREACHABLE();
break;
}