]> git.decadent.org.uk Git - nfs-utils.git/commit
libexport.a: Refactor init_netmask()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 9 Sep 2010 14:27:17 +0000 (10:27 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 9 Sep 2010 14:27:17 +0000 (10:27 -0400)
commitb7df3370555877598d9f2ef49fae2ad4458e9f72
tree16899862bb7d82e37cf0643d53cafc72a177f2b0
parent60abb9889cea52022adf9c8bb946e9d19d79f9ed
libexport.a: Refactor init_netmask()

Instead of a single function that can handle both AF_INET and AF_INET6
addresses, two separate functions might be cleaner.

The original plan was to keep code redundancy at a minimum, but the
resulting code was cumbersome at best.  I think I've traded a little
extra code for something that will be much easier to read, understand,
and maintain.

I've also eliminated the "#if / #endif" instances inside the functions.

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