From c51c20dfa8a81a5d512defcbbf1b7adec3adc591 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 14 Jul 2009 16:53:29 -0400 Subject: [PATCH] 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 --- utils/mount/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; /* -- 2.39.5