Commit 9ce78174 authored by Brian Wellington's avatar Brian Wellington
Browse files

don't use DESTROYLOCK, since isc_mutexblock_destroy actually returns

failure if isc_mutex_destroy fails.
parent 9ce47681
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mutexblock.c,v 1.12 2000/08/26 01:31:48 bwelling Exp $ */
/* $Id: mutexblock.c,v 1.13 2000/08/29 00:25:23 bwelling Exp $ */
#include <config.h>
......@@ -48,7 +48,7 @@ isc_mutexblock_destroy(isc_mutex_t *block, unsigned int count) {
unsigned int i;
for (i = 0 ; i < count ; i++) {
DESTROYLOCK(&block[i]);
result = isc_mutex_destroy(&block[i]);
if (result != ISC_R_SUCCESS)
return (result);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment