diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2010-09-09 10:27:17 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-09-09 10:27:17 -0400 |
commit | b7df3370555877598d9f2ef49fae2ad4458e9f72 (patch) | |
tree | 16899862bb7d82e37cf0643d53cafc72a177f2b0 /utils/gssd/err_util.c | |
parent | 60abb9889cea52022adf9c8bb946e9d19d79f9ed (diff) | |
download | nfs-utils-b7df3370555877598d9f2ef49fae2ad4458e9f72.tar.gz nfs-utils-b7df3370555877598d9f2ef49fae2ad4458e9f72.tar.xz nfs-utils-b7df3370555877598d9f2ef49fae2ad4458e9f72.zip |
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>
Diffstat (limited to 'utils/gssd/err_util.c')
0 files changed, 0 insertions, 0 deletions