diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-09-23 21:52:17 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-09-24 15:25:03 +0300 |
commit | fa50c60d7b3b4963a9e3810c41a216577f76d7af (patch) | |
tree | 89d72ffddb5fdec10fc931f84125bc63691d3af4 /mkfs.jffs2.c | |
parent | da3106bf16a7c065e2205297136c6c60b0562dc3 (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 'mkfs.jffs2.c')
-rw-r--r-- | mkfs.jffs2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c index 5c18eb1..c83b725 100644 --- a/mkfs.jffs2.c +++ b/mkfs.jffs2.c @@ -72,13 +72,14 @@ #include <crc32.h> #include "rbtree.h" +#include "common.h" + /* Do not use the weird XPG version of basename */ #undef basename //#define DMALLOC //#define mkfs_debug_msg error_msg #define mkfs_debug_msg(a...) { } -#define min(x,y) ({ typeof((x)) _x = (x); typeof((y)) _y = (y); (_x>_y)?_y:_x; }) #define PAD(x) (((x)+3)&~3) |