[Libguestfs] [nbdkit PATCH 05/10] ssh: Avoid -Wshadow warnings

Eric Blake eblake at redhat.com
Sun Sep 1 02:29:42 UTC 2019


This one was harmless, but easy enough to avoid.

Signed-off-by: Eric Blake <eblake at redhat.com>
---
 plugins/ssh/ssh.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/ssh/ssh.c b/plugins/ssh/ssh.c
index d3fa2931..ee42ee1f 100644
--- a/plugins/ssh/ssh.c
+++ b/plugins/ssh/ssh.c
@@ -281,11 +281,11 @@ authenticate_pubkey (ssh_session session)
 }

 static int
-authenticate_password (ssh_session session, const char *password)
+authenticate_password (ssh_session session, const char *pass)
 {
   int rc;

-  rc = ssh_userauth_password (session, NULL, password);
+  rc = ssh_userauth_password (session, NULL, pass);
   if (rc == SSH_AUTH_ERROR)
     nbdkit_debug ("password authentication failed: %s",
                   ssh_get_error (session));
-- 
2.21.0




More information about the Libguestfs mailing list