2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

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

This commit is contained in:
Brian Wellington 2000-08-28 19:49:38 +00:00
parent 37a8fbab3a
commit 762b1edceb

View File

@ -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 { \