]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstrim: Use strtoull instead of strtoul
authorLukas Czerner <lczerner@redhat.com>
Wed, 7 Sep 2011 15:48:43 +0000 (15:48 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 23 Sep 2011 15:56:42 +0000 (10:56 -0500)
commit2cede87d2089c6af1b776f5badacac57c1da7ad9
tree8d309e11ff12c4da11f1dd9eb032344f834060fb
parent314b22120156a664ba660a550625193f88cc9cc2
fstrim: Use strtoull instead of strtoul

When we are parsing input arguments we should really use stroull to get
unsigned long long numbers, since this is what we can specify on the
command line. With this fix it should parse long numbers on the 32 bit
architecture correctly.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
src/fstrim.c