]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfs-utils: make makesock() static
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Sep 2008 20:10:48 +0000 (16:10 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 26 Sep 2008 20:10:48 +0000 (16:10 -0400)
Clean up:  The makesock() function can become static since it is only used in
rpcmisc.c, where it is defined.  Fix some minor nits while we're in the area:

 o  Move it so we can remove it's forward declaration.

 o  Get rid of unneeded newlines in the xlog() format strings.

 o  Use htonl(INADDR_ANY) instead of INADDR_ANY to initialize sin_addr.
    Should make no run-time difference, but is slightly more proper,
    as the standard definition of INADDR_ANY is in host byte-order.

 o  Remove the parentheses in the "return" statements.

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

No differences found