diff options
author | Damien Miller <djm@mindrot.org> | 2017-10-23 16:25:24 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-10-23 16:25:24 +1100 |
commit | e3fa20e2e58fdc88a0e842358778f2de448b771b (patch) | |
tree | 645d11a906679a3722e44dcc3aa7ffc38a709818 | |
parent | b7548b12a6b2b4abf4d057192c353147e0abba08 (diff) |
avoid -Wsign-compare warning in argv copying
-rw-r--r-- | sshd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1383,7 +1383,7 @@ main(int ac, char **av) | |||
1383 | saved_argc = ac; | 1383 | saved_argc = ac; |
1384 | rexec_argc = ac; | 1384 | rexec_argc = ac; |
1385 | saved_argv = xcalloc(ac + 1, sizeof(*saved_argv)); | 1385 | saved_argv = xcalloc(ac + 1, sizeof(*saved_argv)); |
1386 | for (i = 0; i < ac; i++) | 1386 | for (i = 0; (int)i < ac; i++) |
1387 | saved_argv[i] = xstrdup(av[i]); | 1387 | saved_argv[i] = xstrdup(av[i]); |
1388 | saved_argv[i] = NULL; | 1388 | saved_argv[i] = NULL; |
1389 | 1389 | ||