aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mkfs_ext2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c
index 41f37c287..83e81054b 100644
--- a/util-linux/mkfs_ext2.c
+++ b/util-linux/mkfs_ext2.c
@@ -59,16 +59,16 @@ struct ext2_dir {
59 char name3[12]; 59 char name3[12];
60}; 60};
61 61
62static inline int int_log2(int arg) 62static unsigned int_log2(unsigned arg)
63{ 63{
64 int r = 0; 64 unsigned r = 0;
65 while ((arg >>= 1) != 0) 65 while ((arg >>= 1) != 0)
66 r++; 66 r++;
67 return r; 67 return r;
68} 68}
69 69
70// taken from mkfs_minix.c. libbb candidate? 70// taken from mkfs_minix.c. libbb candidate?
71static ALWAYS_INLINE unsigned div_roundup(uint32_t size, uint32_t n) 71static unsigned div_roundup(uint32_t size, uint32_t n)
72{ 72{
73 return (size + n-1) / n; 73 return (size + n-1) / n;
74} 74}