diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-10-31 17:20:55 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-10-31 17:20:55 +0000 |
| commit | bfbc104f8a7e2db646bc375f69de7472b0764f9e (patch) | |
| tree | 2ed1e1e066bc81fa72a27b81a5f8169f85d75725 | |
| parent | 7ccbb17bb3343aa895735de919727617dd5eb821 (diff) | |
Notes
| -rw-r--r-- | sys/sys/mutex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 1ff8d3521845..ff17f6e39efa 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -210,7 +210,7 @@ do { \ #ifdef INVARIANTS #define MA_OWNED 1 #define MA_NOTOWNED 2 -#define mtx_assert(m, what) { \ +#define mtx_assert(m, what) do { \ switch ((what)) { \ case MA_OWNED: \ if (!mtx_owned((m))) \ @@ -225,7 +225,7 @@ do { \ default: \ panic("unknown mtx_assert at %s:%d", __FILE__, __LINE__); \ } \ -} +} while(0) #else /* INVARIANTS */ #define mtx_assert(m, what) #endif /* INVARIANTS */ |
