diff options
author | Valerie Aurora Henson <vaurora@redhat.com> | 2009-07-21 19:34:42 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-07-21 19:34:42 -0400 |
commit | b4e0163d53613ae47f79c661f7c1e2009a271c79 (patch) | |
tree | 730910e619ec8d3ba53087e19518e7bae401ea63 /lib/e2p | |
parent | 0180a05e7449ba3ba6b15f7a5c372f712331cb89 (diff) | |
download | e2fsprogs-b4e0163d53613ae47f79c661f7c1e2009a271c79.tar.gz |
libe2p: Add new function parse_num_blocks2()
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/e2p')
-rw-r--r-- | lib/e2p/e2p.h | 1 | ||||
-rw-r--r-- | lib/e2p/parse_num.c | 7 |
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> |