From 53644a14acdf4de9329b704b8018875610c8e832 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Mon, 10 Feb 2014 00:13:26 +0000 Subject: [PATCH] style: be consistent when iterating over wanted_methods Signed-off-by: Luka Perkov Reviewed-by: Andreas Schneider --- src/bind.c | 2 +- src/options.c | 2 +- 2 files changed, 2 insertions(+), 2 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) { 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) {