diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-04-03 11:57:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-03 11:57:34 +0200 |
commit | 365322b8bcf9efb6a361473d227b70f2032212ce (patch) | |
tree | 1c6aa49fce74e802ac29e33098abf4c81ed4836b /tests/libtest/lib597.c | |
parent | c7e4266a2e52d0dd0ad446044174c60ebfe10f73 (diff) |
tests/libtest: follow our code style guidelines better
... checksrc of all test code is pending.
Diffstat (limited to 'tests/libtest/lib597.c')
-rw-r--r-- | tests/libtest/lib597.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/libtest/lib597.c b/tests/libtest/lib597.c index 493d4d8dc..813af7541 100644 --- a/tests/libtest/lib597.c +++ b/tests/libtest/lib597.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -69,7 +69,7 @@ int test(char *URL) multi_init(multi); - for (phase = CONNECT_ONLY_PHASE; phase < LAST_PHASE; ++phase) { + for(phase = CONNECT_ONLY_PHASE; phase < LAST_PHASE; ++phase) { /* go verbose */ easy_setopt(easy, CURLOPT_VERBOSE, 1L); @@ -77,11 +77,11 @@ int test(char *URL) easy_setopt(easy, CURLOPT_URL, URL); /* enable 'CONNECT_ONLY' option when in connect phase */ - if (phase == CONNECT_ONLY_PHASE) + if(phase == CONNECT_ONLY_PHASE) easy_setopt(easy, CURLOPT_CONNECT_ONLY, 1L); /* enable 'NOBODY' option to send 'QUIT' command in quit phase */ - if (phase == QUIT_PHASE) { + if(phase == QUIT_PHASE) { easy_setopt(easy, CURLOPT_CONNECT_ONLY, 0L); easy_setopt(easy, CURLOPT_NOBODY, 1L); easy_setopt(easy, CURLOPT_FORBID_REUSE, 1L); @@ -114,7 +114,8 @@ int test(char *URL) multi_timeout(multi, &timeout); - /* At this point, timeout is guaranteed to be greater or equal than -1. */ + /* At this point, timeout is guaranteed to be greater or equal than + -1. */ if(timeout != -1L) { int itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; |