]> git.decadent.org.uk Git - nfs-utils.git/commit
libexport.a: Refactor netgroup checking in client_check()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 8 Apr 2010 14:54:01 +0000 (10:54 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 8 Apr 2010 15:16:18 +0000 (11:16 -0400)
commit346ca35298e45e55a58d0f566c3b32b69102c6de
tree3656ab58b091c3aa41329f6954be304d68451cc0
parent3455138100064d0213b124c72453accde2276be5
libexport.a: Refactor netgroup checking in client_check()

Clean up: refactor netgroup logic out of client_check() to make it
easier to introduce IPv6 support.

 +  Use preferred style of keeping #ifdef out of the middle of
    function definitions.  Squelch compiler warnings for "#ifndef
    HAVE_INNETGR" by using __attribute__((unused)).

 +  Use preferred style of not using curly braces around switch cases.

 +  Match style used for check_{fqdn,subnetwork}.

 +  Clarify comment documenting use of h_aliases

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/client.c