]> git.decadent.org.uk Git - nfs-utils.git/commit
showmount command: move logic to acquire RPC client handle out of main()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 25 Nov 2008 13:38:01 +0000 (08:38 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 25 Nov 2008 13:38:01 +0000 (08:38 -0500)
commit1c96846ba3adeb59a61e0cf33cf4c94c0678853f
treed8fd8c651a3f935c7bf0e2ed5731d9853c033dd2
parente358039c9ffa8a4ead342e8a0cf0ff51a3a21af4
showmount command: move logic to acquire RPC client handle out of main()

In preparation to support IPv6 in the showmount command, extract the
logic that parses/acquires the target hostname and converts it into an RPC
client handle to contact the remote mountd service, and move it into its
own function.

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