if (!adb->shutting_down) {
adb->shutting_down = true;
- isc_mem_setwater(adb->mctx, water, adb, 0, 0);
+ isc_mem_setwater(adb->mctx, NULL, NULL, 0, 0);
/*
* Isolate shutdown_names and shutdown_entries calls.
*/
lowater = size - (size >> 2); /* Approximately 3/4ths. */
if (size == 0U || hiwater == 0U || lowater == 0U) {
- isc_mem_setwater(adb->mctx, water, adb, 0, 0);
+ isc_mem_setwater(adb->mctx, NULL, NULL, 0, 0);
} else {
isc_mem_setwater(adb->mctx, water, adb, hiwater, lowater);
}
/*
* Disable cache memory limiting.
*/
- isc_mem_setwater(cache->mctx, water, cache, 0, 0);
+ isc_mem_setwater(cache->mctx, NULL, NULL, 0, 0);
} else {
/*
* Establish new cache memory limits (either for the first