]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
showmount command: clean up error returns from connect_nb()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Sep 2008 17:18:11 +0000 (13:18 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 26 Sep 2008 17:18:11 +0000 (13:18 -0400)
Clean up connect_nb() in the showmount command.

Sometimes it returns -1 on error, and sometimes a negative errno.  On error,
it should always return one of these or the other, not both.

Similar functions in other parts of nfs-utils return -1 on error, and set
errno; so let's do that here too.

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

No differences found