diff options
author | Mike Frysinger | 2005-07-30 07:29:22 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-07-30 07:29:22 +0000 |
commit | f7eaf5a012f78753d12e5081a700524c94ce92c3 (patch) | |
tree | 83d3c60cf201dc66311e084edf4105aa09853e0e | |
parent | bb9a0ad95ac7997bef6f15c19cf3e433c88cf61a (diff) | |
download | busybox-f7eaf5a012f78753d12e5081a700524c94ce92c3.zip busybox-f7eaf5a012f78753d12e5081a700524c94ce92c3.tar.gz |
apgo in Bug 351 says: punt parse_version_number since it is no longer used
-rw-r--r-- | e2fsprogs/mke2fs.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/e2fsprogs/mke2fs.c b/e2fsprogs/mke2fs.c index 8d4ee73..cd3f223 100644 --- a/e2fsprogs/mke2fs.c +++ b/e2fsprogs/mke2fs.c @@ -86,30 +86,6 @@ static int int_log10(unsigned int arg) return l; } -static int parse_version_number(const char *s) -{ - int major, minor, rev; - char *endptr; - const char *cp = s; - - if (!s) - return 0; - major = strtol(cp, &endptr, 10); - if (cp == endptr || *endptr != '.') - return 0; - cp = endptr + 1; - minor = strtol(cp, &endptr, 10); - if (cp == endptr || *endptr != '.') - return 0; - cp = endptr + 1; - rev = strtol(cp, &endptr, 10); - if (cp == endptr) - return 0; - return ((((major * 256) + minor) * 256) + rev); -} - - - /* * This function sets the default parameters for a filesystem * |