Fix compile warning about unused typedef
Switch assertion to style as used by the Linux kernel (BUILD_BUG_ON)
Signed-off-by: Peter Wu <lekensteyn@gmail.com>
diff --git a/lens_default.c b/lens_default.c
index e0c0566..84b74ea 100644
--- a/lens_default.c
+++ b/lens_default.c
@@ -345,7 +345,7 @@
{
/* We need "long" to be long enough to cover the whole address
* space. */
- typedef char assert__long_enough_long[-(sizeof(long) < sizeof(void *))];
+ (void)sizeof(char[1 - 2*(sizeof(long) < sizeof(void *))]);
long l;
if (expr_eval_word(length, value, arguments, &l) < 0)
return -1;