~ubuntu-branches/ubuntu/edgy/e2fsprogs/edgy-updates

« back to all changes in this revision

Viewing changes to lib/ext2fs/version.c

  • Committer: Bazaar Package Importer
  • Author(s): Tollef Fog Heen
  • Date: 2005-08-23 10:42:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050823104210-t15igvmgrkzea0dq
Tags: 1.38-2ubuntu1
* Merge with Debian.  (Ubuntu #13757)
* Remove tests/f_bad_disconnected_inode/image.gz to be able to build the
  package.  This will (hopefully) be in the next upstream version and is
  just used for testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        int version = 0;
31
31
 
32
32
        for (cp = ver_string; *cp; cp++) {
 
33
                if (*cp == '.')
 
34
                        continue;
33
35
                if (!isdigit(*cp))
34
 
                        continue;
 
36
                        break;
35
37
                version = (version * 10) + (*cp - '0');
36
38
        }
37
39
        return version;