mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-23 07:07:00 -04:00
DESTROYLOCK does not need a do { } while (0) construct.
This commit is contained in:
parent
37a8fbab3a
commit
762b1edceb
1 changed files with 3 additions and 4 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: util.h,v 1.18 2000/08/26 01:23:17 bwelling Exp $ */
|
||||
/* $Id: util.h,v 1.19 2000/08/28 19:49:38 bwelling Exp $ */
|
||||
|
||||
#ifndef ISC_UTIL_H
|
||||
#define ISC_UTIL_H 1
|
||||
|
|
@ -94,9 +94,8 @@
|
|||
(lp), __FILE__, __LINE__)); \
|
||||
} while (0)
|
||||
#define ISLOCKED(lp) (1)
|
||||
#define DESTROYLOCK(lp) do { \
|
||||
RUNTIME_CHECK(isc_mutex_destroy((lp)) == ISC_R_SUCCESS); \
|
||||
} while (0);
|
||||
#define DESTROYLOCK(lp) \
|
||||
RUNTIME_CHECK(isc_mutex_destroy((lp)) == ISC_R_SUCCESS)
|
||||
|
||||
|
||||
#define BROADCAST(cvp) do { \
|
||||
|
|
|
|||
Loading…
Reference in a new issue