]> git.decadent.org.uk Git - nfs-utils.git/commit
exportfs: Add a common exit label in exportfs()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 Jun 2010 16:40:27 +0000 (12:40 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 22 Jun 2010 20:04:53 +0000 (16:04 -0400)
commit3ca5879be32c4c11750e12230ff588195fff0738
tree0ec187a74a0c6dade4bea68ac296de28d0cf7606
parent94ce1eb94babb4c587b2826452fb053cba745098
exportfs: Add a common exit label in exportfs()

Clean up: Reduce code duplication by introducing a goto label for
freeing hp and exiting.  This will make replacing "struct hostent *"
with "struct addrinfo *" more straightforward in this code.

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