Whamcloud - gitweb
badblocks: Factor out calls to strtoul to a helper function
authorTheodore Ts'o <tytso@mit.edu>
Mon, 22 Oct 2007 14:19:20 +0000 (10:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Oct 2007 15:55:31 +0000 (11:55 -0400)
commitb5674ff53b11f4b0bb4c9a7abb605b86c4af0b0e
treed3ecfe31d39f7eb9ca96ad26e2de6cbf3b520ed8
parent067a115e4bfcc5153b74219abab2d2989c66715d
badblocks: Factor out calls to strtoul to a helper function

The strtoul() function has a lot of messy error checking that needs to
be done; by factoring it out into one place we can make sure it's done
right in all of the places where it is called.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/badblocks.c