diff options
author | Luka Perkov <luka.perkov@sartura.hr> | 2014-02-10 00:13:26 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-03-27 11:23:34 +0100 |
commit | 53644a14acdf4de9329b704b8018875610c8e832 (patch) | |
tree | 3bc38f9e0f5e55a2beddf02cf0f010f6a8fcb06c /src | |
parent | aa05248ca81e3bd9e949ad724d45518707446e2c (diff) | |
download | libssh-53644a14acdf4de9329b704b8018875610c8e832.tar.gz libssh-53644a14acdf4de9329b704b8018875610c8e832.tar.xz libssh-53644a14acdf4de9329b704b8018875610c8e832.zip |
style: be consistent when iterating over wanted_methods
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/bind.c | 2 | ||||
-rw-r--r-- | src/options.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -394,7 +394,7 @@ int ssh_bind_accept_fd(ssh_bind sshbind, ssh_session session, socket_t fd){ session->version = 2; /* copy options */ - for (i = 0; i < 10; ++i) { + for (i = 0; i < 10; i++) { if (sshbind->wanted_methods[i]) { session->opts.wanted_methods[i] = strdup(sshbind->wanted_methods[i]); if (session->opts.wanted_methods[i] == NULL) { diff --git a/src/options.c b/src/options.c index 0b26024a..1e441f3e 100644 --- a/src/options.c +++ b/src/options.c @@ -136,7 +136,7 @@ int ssh_options_copy(ssh_session src, ssh_session *dest) { } } - for (i = 0; i < 10; ++i) { + for (i = 0; i < 10; i++) { if (src->opts.wanted_methods[i]) { new->opts.wanted_methods[i] = strdup(src->opts.wanted_methods[i]); if (new->opts.wanted_methods[i] == NULL) { |