mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
fix compiler warning
This commit is contained in:
parent
cad9c3f55f
commit
e3009f2950
@ -215,7 +215,7 @@ int test(char *URL)
|
|||||||
res = TEST_ERR_RUNS_FOREVER;
|
res = TEST_ERR_RUNS_FOREVER;
|
||||||
}
|
}
|
||||||
|
|
||||||
test_cleanup:
|
/* test_cleanup: */
|
||||||
|
|
||||||
#ifndef LIB527
|
#ifndef LIB527
|
||||||
/* get NUM_HANDLES easy handles */
|
/* get NUM_HANDLES easy handles */
|
||||||
|
@ -197,7 +197,7 @@ int test(char *URL)
|
|||||||
res = TEST_ERR_RUNS_FOREVER;
|
res = TEST_ERR_RUNS_FOREVER;
|
||||||
}
|
}
|
||||||
|
|
||||||
test_cleanup:
|
/* test_cleanup: */
|
||||||
|
|
||||||
/* cleanup NUM_HANDLES easy handles */
|
/* cleanup NUM_HANDLES easy handles */
|
||||||
for(i=0; i < NUM_HANDLES; i++) {
|
for(i=0; i < NUM_HANDLES; i++) {
|
||||||
|
@ -32,7 +32,7 @@ static char *suburl(const char *base, int i)
|
|||||||
*/
|
*/
|
||||||
int test(char *URL)
|
int test(char *URL)
|
||||||
{
|
{
|
||||||
CURLcode res;
|
int res;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
int sdp;
|
int sdp;
|
||||||
FILE *sdpf = NULL;
|
FILE *sdpf = NULL;
|
||||||
|
@ -25,7 +25,7 @@ static char *suburl(const char *base, int i)
|
|||||||
*/
|
*/
|
||||||
int test(char *URL)
|
int test(char *URL)
|
||||||
{
|
{
|
||||||
CURLcode res;
|
int res;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
char *stream_uri;
|
char *stream_uri;
|
||||||
char *rtsp_session_id;
|
char *rtsp_session_id;
|
||||||
@ -60,7 +60,7 @@ int test(char *URL)
|
|||||||
|
|
||||||
test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP);
|
test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
if(res != CURLE_BAD_FUNCTION_ARGUMENT) {
|
if(res != (int)CURLE_BAD_FUNCTION_ARGUMENT) {
|
||||||
fprintf(stderr, "This should have failed. "
|
fprintf(stderr, "This should have failed. "
|
||||||
"Cannot setup without a Transport: header");
|
"Cannot setup without a Transport: header");
|
||||||
res = TEST_ERR_MAJOR_BAD;
|
res = TEST_ERR_MAJOR_BAD;
|
||||||
@ -113,6 +113,6 @@ test_cleanup:
|
|||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|
||||||
return (int)res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ static char *suburl(const char *base, int i)
|
|||||||
|
|
||||||
int test(char *URL)
|
int test(char *URL)
|
||||||
{
|
{
|
||||||
CURLcode res;
|
int res;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
int request=1;
|
int request=1;
|
||||||
char *stream_uri = NULL;
|
char *stream_uri = NULL;
|
||||||
@ -55,7 +55,7 @@ int test(char *URL)
|
|||||||
stream_uri = NULL;
|
stream_uri = NULL;
|
||||||
|
|
||||||
res = curl_easy_perform(curl);
|
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");
|
fprintf(stderr, "Failed to detect CSeq mismatch");
|
||||||
res = TEST_ERR_MAJOR_BAD;
|
res = TEST_ERR_MAJOR_BAD;
|
||||||
goto test_cleanup;
|
goto test_cleanup;
|
||||||
@ -98,6 +98,6 @@ test_cleanup:
|
|||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|
||||||
return (int)res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ static char *suburl(const char *base, int i)
|
|||||||
|
|
||||||
int test(char *URL)
|
int test(char *URL)
|
||||||
{
|
{
|
||||||
CURLcode res;
|
int res;
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
char *stream_uri = NULL;
|
char *stream_uri = NULL;
|
||||||
int request=1;
|
int request=1;
|
||||||
@ -189,6 +189,6 @@ test_cleanup:
|
|||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|
||||||
return (int)res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user