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 22:05:32 +0000 (18:05 -0400)
commitd4be9fad6eb65752a623521f9b66b5c30831a3a1
tree477a30dbf6cc8570e6ba632e23c60ded5c072d24
parentacd77415a9c0d6279f4effee2a5e59ededc7b2d2
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