diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-06-27 11:27:22 -0700 |
---|---|---|
committer | Artem Bityutskiy <dedekind1@gmail.com> | 2011-06-29 08:42:39 +0300 |
commit | ede39dff3f0352ae5237af8a47e97f22cd57e97e (patch) | |
tree | 95f30eface59703891b4a898b11427e5ae6570dc /mkfs.ubifs | |
parent | f0bfefeb47291a83d0d0c2b6793e3fa41ef27339 (diff) |
mkfs.ubifs: use common.h
To use more unified versioning and to re-use other existing code,
switch to common.h.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
Diffstat (limited to 'mkfs.ubifs')
-rw-r--r-- | mkfs.ubifs/mkfs.ubifs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c index ac3c8d3..c718818 100644 --- a/mkfs.ubifs/mkfs.ubifs.c +++ b/mkfs.ubifs/mkfs.ubifs.c @@ -20,8 +20,11 @@ * Zoltan Sogor */ +#define PROGRAM_NAME "mkfs.ubifs" + #include "mkfs.ubifs.h" #include <crc32.h> +#include "common.h" #define PROGRAM_VERSION "1.5" @@ -390,11 +393,6 @@ static long long add_space_overhead(long long size) return size / divisor; } -static inline int is_power_of_2(unsigned long long n) -{ - return (n != 0 && ((n & (n - 1)) == 0)); -} - static int validate_options(void) { int tmp; |