diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-11-05 22:02:56 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-11-06 00:06:21 +0100 |
commit | f99430d89ecccf2a899a743d6c856102e967e32a (patch) | |
tree | 7b74fc8518f67d1049359f822cb08c7ecafc69e2 /tests/libtest | |
parent | 09a491378a57ef9c27a8f4e4d7c3516155bca094 (diff) |
libauthretry.c: shorten lines to fit within 80 cols
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/libauthretry.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/libtest/libauthretry.c b/tests/libtest/libauthretry.c index 900e85fa4..78b2775f9 100644 --- a/tests/libtest/libauthretry.c +++ b/tests/libtest/libauthretry.c @@ -28,7 +28,8 @@ #include "memdebug.h" -static int send_request(CURL *curl, const char *url, int seq, long auth_scheme, const char *userpwd) +static int send_request(CURL *curl, const char *url, int seq, + long auth_scheme, const char *userpwd) { CURLcode res; char* full_url = malloc(strlen(url) + 4 + 1); @@ -39,7 +40,8 @@ static int send_request(CURL *curl, const char *url, int seq, long auth_scheme, } sprintf(full_url, "%s%04d", url, seq); - fprintf(stderr, "Sending new request %d to %s with credential %s (auth %ld)\n", seq, full_url, userpwd, auth_scheme); + fprintf(stderr, "Sending new request %d to %s with credential %s " + "(auth %ld)\n", seq, full_url, userpwd, auth_scheme); test_setopt(curl, CURLOPT_URL, full_url); test_setopt(curl, CURLOPT_VERBOSE, 1L); test_setopt(curl, CURLOPT_HEADER, 1L); @@ -50,16 +52,18 @@ static int send_request(CURL *curl, const char *url, int seq, long auth_scheme, res = curl_easy_perform(curl); test_cleanup: - free(full_url); + free(full_url); return res; } -static int send_wrong_password(CURL *curl, const char *url, int seq, long auth_scheme) +static int send_wrong_password(CURL *curl, const char *url, int seq, + long auth_scheme) { return send_request(curl, url, seq, auth_scheme, "testuser:wrongpass"); } -static int send_right_password(CURL *curl, const char *url, int seq, long auth_scheme) +static int send_right_password(CURL *curl, const char *url, int seq, + long auth_scheme) { return send_request(curl, url, seq, auth_scheme, "testuser:testpass"); } @@ -87,7 +91,7 @@ int test(char *url) long fallback_auth_scheme = parse_auth_name(libtest_arg3); if (main_auth_scheme == CURLAUTH_NONE || - fallback_auth_scheme == CURLAUTH_NONE) { + fallback_auth_scheme == CURLAUTH_NONE) { fprintf(stderr, "auth schemes not found on commandline\n"); res = TEST_ERR_MAJOR_BAD; goto test_cleanup; |