Commit 762b1edc authored by Brian Wellington's avatar Brian Wellington
Browse files

DESTROYLOCK does not need a do { } while (0) construct.

parent 37a8fbab
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 #ifndef ISC_UTIL_H
#define ISC_UTIL_H 1 #define ISC_UTIL_H 1
...@@ -94,9 +94,8 @@ ...@@ -94,9 +94,8 @@
(lp), __FILE__, __LINE__)); \ (lp), __FILE__, __LINE__)); \
} while (0) } while (0)
#define ISLOCKED(lp) (1) #define ISLOCKED(lp) (1)
#define DESTROYLOCK(lp) do { \ #define DESTROYLOCK(lp) \
RUNTIME_CHECK(isc_mutex_destroy((lp)) == ISC_R_SUCCESS); \ RUNTIME_CHECK(isc_mutex_destroy((lp)) == ISC_R_SUCCESS)
} while (0);
#define BROADCAST(cvp) do { \ #define BROADCAST(cvp) do { \
......
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