[openssh-commits] [openssh] 01/01: avoid -Wsign-compare warning in argv copying

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Oct 23 16:25:42 AEDT 2017


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit e3fa20e2e58fdc88a0e842358778f2de448b771b
Author: Damien Miller <djm at mindrot.org>
Date:   Mon Oct 23 16:25:24 2017 +1100

    avoid -Wsign-compare warning in argv copying
---
 sshd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sshd.c b/sshd.c
index 2ff38555..0e3ac26d 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1383,7 +1383,7 @@ main(int ac, char **av)
 	saved_argc = ac;
 	rexec_argc = ac;
 	saved_argv = xcalloc(ac + 1, sizeof(*saved_argv));
-	for (i = 0; i < ac; i++)
+	for (i = 0; (int)i < ac; i++)
 		saved_argv[i] = xstrdup(av[i]);
 	saved_argv[i] = NULL;
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list