summaryrefslogtreecommitdiff
path: root/tests/libtest/lib570.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-05 19:19:34 +0000
committerYang Tse <yangsita@gmail.com>2010-02-05 19:19:34 +0000
commite3009f2950b2f6b778a6e0daf4466d6ec9132ed2 (patch)
tree64fbf9a4e41e54926e2bd83bd371081f50198ce3 /tests/libtest/lib570.c
parentcad9c3f55fad5da988144dc83ad76a8544a071a2 (diff)
downloadcurl-e3009f2950b2f6b778a6e0daf4466d6ec9132ed2.tar.gz
fix compiler warning
Diffstat (limited to 'tests/libtest/lib570.c')
-rw-r--r--tests/libtest/lib570.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/lib570.c b/tests/libtest/lib570.c
index f044f85e2..4f40a0276 100644
--- a/tests/libtest/lib570.c
+++ b/tests/libtest/lib570.c
@@ -22,7 +22,7 @@ static char *suburl(const char *base, int i)
int test(char *URL)
{
- CURLcode res;
+ int res;
CURL *curl;
int request=1;
char *stream_uri = NULL;
@@ -55,7 +55,7 @@ int test(char *URL)
stream_uri = NULL;
res = curl_easy_perform(curl);
- if(res != CURLE_RTSP_CSEQ_ERROR) {
+ if(res != (int)CURLE_RTSP_CSEQ_ERROR) {
fprintf(stderr, "Failed to detect CSeq mismatch");
res = TEST_ERR_MAJOR_BAD;
goto test_cleanup;
@@ -98,6 +98,6 @@ test_cleanup:
curl_easy_cleanup(curl);
curl_global_cleanup();
- return (int)res;
+ return res;
}