From: Chuck Lever Date: Tue, 14 Jul 2009 20:53:29 +0000 (-0400) Subject: mount.nfs: Remove unused @salen parameter from nfs_ca_gai() X-Git-Tag: nfs-utils-1-2-1-rc2~7 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c51c20dfa8a81a5d512defcbbf1b7adec3adc591;p=nfs-utils.git mount.nfs: Remove unused @salen parameter from nfs_ca_gai() Address compiler warning: network.c:1124: warning: unused parameter salen Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/utils/mount/network.c b/utils/mount/network.c index 6e0a72a..11c7162 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -1103,7 +1103,7 @@ static int nfs_ca_sockname(const struct sockaddr *sap, const socklen_t salen, * * Returns 1 and fills in @buf if successful; otherwise, zero. */ -static int nfs_ca_gai(const struct sockaddr *sap, const socklen_t salen, +static int nfs_ca_gai(const struct sockaddr *sap, struct sockaddr *buf, socklen_t *buflen) { struct addrinfo *gai_results; @@ -1144,7 +1144,7 @@ int nfs_callback_address(const struct sockaddr *sap, const socklen_t salen, struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)buf; if (nfs_ca_sockname(sap, salen, buf, buflen) == 0) - if (nfs_ca_gai(sap, salen, buf, buflen) == 0) + if (nfs_ca_gai(sap, buf, buflen) == 0) goto out_failed; /*