summaryrefslogtreecommitdiff
path: root/lib/e2p
diff options
context:
space:
mode:
Diffstat (limited to 'lib/e2p')
-rw-r--r--lib/e2p/e2p.h1
-rw-r--r--lib/e2p/parse_num.c7
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/e2p/e2p.h b/lib/e2p/e2p.h
index d125e144..8a13f5f5 100644
--- a/lib/e2p/e2p.h
+++ b/lib/e2p/e2p.h
@@ -57,6 +57,7 @@ int e2p_string2mntopt(char *string, unsigned int *mask);
int e2p_edit_mntopts(const char *str, __u32 *mntopts, __u32 ok);
unsigned long parse_num_blocks(const char *arg, int log_block_size);
+unsigned long long parse_num_blocks2(const char *arg, int log_block_size);
char *e2p_os2string(int os_type);
int e2p_string2os(char *str);
diff --git a/lib/e2p/parse_num.c b/lib/e2p/parse_num.c
index 7f817d60..5b53215b 100644
--- a/lib/e2p/parse_num.c
+++ b/lib/e2p/parse_num.c
@@ -11,7 +11,7 @@
#include <stdlib.h>
-unsigned long parse_num_blocks(const char *arg, int log_block_size)
+unsigned long long parse_num_blocks2(const char *arg, int log_block_size)
{
char *p;
unsigned long long num;
@@ -42,6 +42,11 @@ unsigned long parse_num_blocks(const char *arg, int log_block_size)
return num;
}
+unsigned long parse_num_blocks(const char *arg, int log_block_size)
+{
+ return parse_num_blocks2(arg, log_block_size);
+}
+
#ifdef DEBUG
#include <unistd.h>
#include <stdio.h>