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/lib553.c | |
parent | c7e4266a2e52d0dd0ad446044174c60ebfe10f73 (diff) |
tests/libtest: follow our code style guidelines better
... checksrc of all test code is pending.
Diffstat (limited to 'tests/libtest/lib553.c')
-rw-r--r-- | tests/libtest/lib553.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib553.c b/tests/libtest/lib553.c index ab4db74c7..9afaad48f 100644 --- a/tests/libtest/lib553.c +++ b/tests/libtest/lib553.c @@ -39,7 +39,7 @@ static size_t myreadfunc(void *ptr, size_t size, size_t nmemb, void *stream) memset(buf, 'A', sizeof(buf)); size *= nmemb; - if (size > total) + if(size > total) size = total; if(size > sizeof(buf)) @@ -73,18 +73,18 @@ int test(char *URL) return TEST_ERR_MAJOR_BAD; } - for (i = 0; i < NUM_HEADERS; i++) { + for(i = 0; i < NUM_HEADERS; i++) { int len = snprintf(buf, sizeof(buf), "Header%d: ", i); memset(&buf[len], 'A', SIZE_HEADERS); buf[len + SIZE_HEADERS]=0; /* zero terminate */ hl = curl_slist_append(headerlist, buf); - if (!hl) + if(!hl) goto test_cleanup; headerlist = hl; } hl = curl_slist_append(headerlist, "Expect: "); - if (!hl) + if(!hl) goto test_cleanup; headerlist = hl; |