From: Chuck Lever Date: Fri, 26 Sep 2008 20:10:48 +0000 (-0400) Subject: nfs-utils: make makesock() static X-Git-Tag: nfs-utils-1-1-4~16 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=173f4c79c08a947742970a5e12d529249c2c3631;hp=173f4c79c08a947742970a5e12d529249c2c3631 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 Signed-off-by: Steve Dickson ---