aboutsummaryrefslogtreecommitdiff
path: root/src/bind.c
diff options
context:
space:
mode:
authorLuka Perkov <luka.perkov@sartura.hr>2014-02-10 00:13:26 +0000
committerAndreas Schneider <asn@cryptomilk.org>2014-03-27 11:23:34 +0100
commit53644a14acdf4de9329b704b8018875610c8e832 (patch)
tree3bc38f9e0f5e55a2beddf02cf0f010f6a8fcb06c /src/bind.c
parentaa05248ca81e3bd9e949ad724d45518707446e2c (diff)
downloadlibssh-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/bind.c')
-rw-r--r--src/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bind.c b/src/bind.c
index b929b5c4..b3239462 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -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) {