[PATCH 2/5] lib: decompress: remove redundant INT_MAX define

Masahiro Yamada yamada.m at jp.panasonic.com
Tue Jan 20 21:09:16 PST 2015


lib/decompress_bunzip2.c includes <common.h> and INT_MAX is already
defined there.  The definition in this file is redundant.

Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---

 lib/decompress_bunzip2.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/decompress_bunzip2.c b/lib/decompress_bunzip2.c
index 0ca2dcd..ee2862b 100644
--- a/lib/decompress_bunzip2.c
+++ b/lib/decompress_bunzip2.c
@@ -53,10 +53,6 @@
 #include <bunzip2.h>
 #endif /* STATIC */
 
-#ifndef INT_MAX
-#define INT_MAX 0x7fffffff
-#endif
-
 /* Constants for Huffman coding */
 #define MAX_GROUPS		6
 #define GROUP_SIZE   		50	/* 64 would have been more efficient */
-- 
1.9.1




More information about the barebox mailing list