mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-15 18:38:53 -04:00
This commits removes superfluous checks when using the isc_refcount API.
Examples of superfluous checks:
1. The isc_refcount_decrement function ensures there was not underflow,
so this check is superfluous:
INSIST(isc_refcount_decrement(&r) > 0);
2 .The isc_refcount_destroy() includes check whether the counter
is zero, therefore this is superfluous:
INSIST(isc_refcount_decrement(&r) == 1 && isc_refcount_destroy(&r));
|
||
|---|---|---|
| .. | ||
| include | ||
| dir.c | ||
| errno.c | ||
| errno2result.c | ||
| errno2result.h | ||
| file.c | ||
| fsaccess.c | ||
| ifiter_getifaddrs.c | ||
| interfaceiter.c | ||
| Makefile.in | ||
| meminfo.c | ||
| net.c | ||
| os.c | ||
| pk11_api.c | ||
| resource.c | ||
| socket.c | ||
| socket_p.h | ||
| stdio.c | ||
| stdtime.c | ||
| syslog.c | ||
| time.c | ||