xfstests: randholes: encapsulate argument parsing
authorAlex Elder <aelder@sgi.com>
Thu, 14 Oct 2010 14:50:57 +0000 (14:50 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 19 Oct 2010 15:05:32 +0000 (10:05 -0500)
commit97d57710d23754b3d307b6af292aa51b91ea54a9
treec41dd340afca9e53c79335cbb17de67c55b1c079
parent61591161e42943531e9f72ef90c28dab97473228
xfstests: randholes: encapsulate argument parsing

Move the argument parsing code out of main() and into a separate
parseargs() routine.  The name of the target file for the test
is returned by parseargs() if no error occurs.

Signed-off-by: Alex Elder <aelder@sgi.com>
Acked-by: Dave Chinner <david@fromorbit.com>
src/randholes.c