summaryrefslogtreecommitdiff
path: root/compr_zlib.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-23 21:52:17 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-24 15:25:03 +0300
commitfa50c60d7b3b4963a9e3810c41a216577f76d7af (patch)
tree89d72ffddb5fdec10fc931f84125bc63691d3af4 /compr_zlib.c
parentda3106bf16a7c065e2205297136c6c60b0562dc3 (diff)
mtd-utils: convert to common.h/min
Kill off duplicated min() defines and convert to the common.h one. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'compr_zlib.c')
-rw-r--r--compr_zlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/compr_zlib.c b/compr_zlib.c
index dda3e40..0564f16 100644
--- a/compr_zlib.c
+++ b/compr_zlib.c
@@ -39,10 +39,9 @@
#include <stdio.h>
#include <asm/types.h>
#include <linux/jffs2.h>
+#include "common.h"
#include "compr.h"
-#define min(x,y) ((x)<(y)?(x):(y))
-
/* Plan: call deflate() with avail_in == *sourcelen,
avail_out = *dstlen - 12 and flush == Z_FINISH.
If it doesn't manage to finish, call it again with