res = TEST_ERR_RUNS_FOREVER;
}
-test_cleanup:
+/* test_cleanup: */
#ifndef LIB527
/* get NUM_HANDLES easy handles */
res = TEST_ERR_RUNS_FOREVER;
}
-test_cleanup:
+/* test_cleanup: */
/* cleanup NUM_HANDLES easy handles */
for(i=0; i < NUM_HANDLES; i++) {
*/
int test(char *URL)
{
- CURLcode res;
+ int res;
CURL *curl;
int sdp;
FILE *sdpf = NULL;
*/
int test(char *URL)
{
- CURLcode res;
+ int res;
CURL *curl;
char *stream_uri;
char *rtsp_session_id;
test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP);
res = curl_easy_perform(curl);
- if(res != CURLE_BAD_FUNCTION_ARGUMENT) {
+ if(res != (int)CURLE_BAD_FUNCTION_ARGUMENT) {
fprintf(stderr, "This should have failed. "
"Cannot setup without a Transport: header");
res = TEST_ERR_MAJOR_BAD;
curl_easy_cleanup(curl);
curl_global_cleanup();
- return (int)res;
+ return res;
}
int test(char *URL)
{
- CURLcode res;
+ int res;
CURL *curl;
int request=1;
char *stream_uri = NULL;
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;
curl_easy_cleanup(curl);
curl_global_cleanup();
- return (int)res;
+ return res;
}
int test(char *URL)
{
- CURLcode res;
+ int res;
CURL *curl;
char *stream_uri = NULL;
int request=1;
curl_easy_cleanup(curl);
curl_global_cleanup();
- return (int)res;
+ return res;
}