diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-09-26 16:10:48 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-09-26 16:10:48 -0400 |
commit | 173f4c79c08a947742970a5e12d529249c2c3631 (patch) | |
tree | 0f286f98706cdebc688708e2af4f89dc652dfc65 /support/include/rpcmisc.h | |
parent | 7de004227d2a95ac10a591a68f95057a242d8dc0 (diff) | |
download | nfs-utils-173f4c79c08a947742970a5e12d529249c2c3631.tar.gz nfs-utils-173f4c79c08a947742970a5e12d529249c2c3631.tar.xz nfs-utils-173f4c79c08a947742970a5e12d529249c2c3631.zip |
nfs-utils: make makesock() static
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>
Diffstat (limited to 'support/include/rpcmisc.h')
-rw-r--r-- | support/include/rpcmisc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/support/include/rpcmisc.h b/support/include/rpcmisc.h index 35c5011..5814a63 100644 --- a/support/include/rpcmisc.h +++ b/support/include/rpcmisc.h @@ -42,7 +42,6 @@ struct rpc_dtable { } -int makesock(int port, int proto); void rpc_init(char *name, int prog, int vers, void (*dispatch)(struct svc_req *, SVCXPRT *), int defport); |