diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-09-02 20:39:53 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-09-02 20:39:53 +0100 |
commit | f73f052010b2430dbb14ddf05e2a67e4d0b4b7de (patch) | |
tree | 9736fe422162a415d5827b3d9741e1c514420fa5 | |
parent | 97ed1ac905a02e27c2a61071103ae016ba0fed44 (diff) |
lib1512.c: Fixed compilation warning
An enumerated type is mixed with another type.
...as well as a small coding style error.
-rw-r--r-- | tests/libtest/lib1512.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/lib1512.c b/tests/libtest/lib1512.c index 447ffb218..86372aac6 100644 --- a/tests/libtest/lib1512.c +++ b/tests/libtest/lib1512.c @@ -34,7 +34,7 @@ int test(char *URL) { - CURLcode res = 0; + int res = 0; CURL *curl[NUM_HANDLES] = {NULL, NULL}; char *port = libtest_arg3; char *address = libtest_arg2; @@ -44,7 +44,7 @@ int test(char *URL) char target_url[256]; (void)URL; /* URL is setup in the code */ - if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { + if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { fprintf(stderr, "curl_global_init() failed\n"); return TEST_ERR_MAJOR_BAD; } @@ -84,6 +84,6 @@ test_cleanup: curl_slist_free_all(slist); curl_global_cleanup(); - return (int)res; + return res; } |