diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-04-05 04:29:35 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-04-05 04:29:35 +0000 |
commit | d0f6280db790de2ad69bd01a1275e350cbd2840d (patch) | |
tree | cf3176c0801c94a4f298353cc450f10cf1aae9c0 /contrib/bind9/lib/isc/mutexblock.c | |
parent | 8931e524bfb5c6a10894f704e3eaa05ee5d9fa77 (diff) | |
parent | 42d3eba523963ab015ac451eeea0788b11631c94 (diff) | |
download | src-d0f6280db790de2ad69bd01a1275e350cbd2840d.tar.gz src-d0f6280db790de2ad69bd01a1275e350cbd2840d.zip |
Update to version 9.8.2, the latest from ISC, which contains numerous bug fixes.
Notes
Notes:
svn path=/head/; revision=233914
Diffstat (limited to 'contrib/bind9/lib/isc/mutexblock.c')
-rw-r--r-- | contrib/bind9/lib/isc/mutexblock.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/bind9/lib/isc/mutexblock.c b/contrib/bind9/lib/isc/mutexblock.c index 38f423a87e49..d41e9d28d86d 100644 --- a/contrib/bind9/lib/isc/mutexblock.c +++ b/contrib/bind9/lib/isc/mutexblock.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2005, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2001 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: mutexblock.c,v 1.20 2007-06-19 23:47:17 tbox Exp $ */ +/* $Id$ */ /*! \file */ @@ -32,10 +32,9 @@ isc_mutexblock_init(isc_mutex_t *block, unsigned int count) { for (i = 0; i < count; i++) { result = isc_mutex_init(&block[i]); if (result != ISC_R_SUCCESS) { - i--; - while (i > 0) { - DESTROYLOCK(&block[i]); + while (i > 0U) { i--; + DESTROYLOCK(&block[i]); } return (result); } |