[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] style: be consistent when iterating over wanted_methods


Signed-off-by: Luka Perkov <luka.perkov@xxxxxxxxxx>
---
 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 8d82d0d..58b2359 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -393,7 +393,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 cdcbe7c..0caf1a1 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) {
-- 
1.8.5.3


Archive administrator: postmaster@lists.cynapses.org