]> git.decadent.org.uk Git - nfs-utils.git/commit
mountd: move most of get_exportlist() into helpers
authorJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 27 Nov 2009 20:01:12 +0000 (15:01 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
commit8ec371fe01e96c008cdc6143db716f1a9bfb6566
tree838e4358b3cb42f21fcaa40e4a1ad2dad1791254
parentb25694320f2bdd79de82f2003209b8229eafff36
mountd: move most of get_exportlist() into helpers

I needed to understand get_exportlist() recently, and it gave me
trouble.

Move detail work into helper functions to make the basic logic clear,
and to remove need for excessive nesting (and fix inconsistent
indentation levels).  Also remove unnecessary casts of void returns from
xmalloc().

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
utils/mountd/mountd.c