]> www.infradead.org Git - mtd-utils.git/commitdiff
mkfs.ubifs: use common.h
authorBrian Norris <computersforpeace@gmail.com>
Mon, 27 Jun 2011 18:27:22 +0000 (11:27 -0700)
committerArtem Bityutskiy <dedekind1@gmail.com>
Wed, 29 Jun 2011 05:42:39 +0000 (08:42 +0300)
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>
mkfs.ubifs/mkfs.ubifs.c

index ac3c8d3cd9bb73eeb9c94e3faceb7dbd48d5dbbf..c718818954b596ba46533a1aad3d5998048bdc58 100644 (file)
  *          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;