summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVMware, Inc <>2013-09-17 20:40:51 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-09-22 22:30:00 -0700
commitc297a757b88435ca43bfe0dcf71b97c5d8a3e41a (patch)
tree726233ace4f2c8a6f175afcd0c7031a343afccd3
parentb102cb180bc724f3656a7d3a27af954b2ebe7e20 (diff)
Get rid of ASSERT_LENGTH.
It was used way back in ancient times in the binary translator but today no more uses remain. So let us remove this global Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
-rw-r--r--open-vm-tools/lib/include/vm_assert.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/open-vm-tools/lib/include/vm_assert.h b/open-vm-tools/lib/include/vm_assert.h
index 619050a0..be8c6d42 100644
--- a/open-vm-tools/lib/include/vm_assert.h
+++ b/open-vm-tools/lib/include/vm_assert.h
@@ -315,9 +315,6 @@ do { \
#undef ASSERT_BUG_DEBUGONLY
#define ASSERT_BUG_DEBUGONLY(bug, cond) ((void) 0)
-#undef ASSERT_LENGTH
-#define ASSERT_LENGTH(real, expected) ((void) 0)
-
/*
* Expand NOT_REACHED() as appropriate for each situation.
*
@@ -400,8 +397,8 @@ do { \
*/
#define MY_ASSERTS(name, assertions) \
- static INLINE void name(void) { \
- assertions \
+ static INLINE void name(void) { \
+ assertions \
}
#ifdef __cplusplus