can be bitwise ORed so that CURL_REDIR_POST_301 | CURL_REDIR_POST_302
| CURL_REDIR_POST_303 == CURL_REDIR_POST_ALL */
-#define CURL_REDIR_GET_ALL 0
-#define CURL_REDIR_POST_301 1
-#define CURL_REDIR_POST_302 2
-#define CURL_REDIR_POST_303 4
+#define CURL_REDIR_GET_ALL 0L
+#define CURL_REDIR_POST_301 1L
+#define CURL_REDIR_POST_302 2L
+#define CURL_REDIR_POST_303 4L
#define CURL_REDIR_POST_ALL \
(CURL_REDIR_POST_301|CURL_REDIR_POST_302|CURL_REDIR_POST_303)
test_setopt(curl, CURLOPT_POSTFIELDS, "moo");
}
if(testnum == 1581) {
- test_setopt(curl, CURLOPT_POSTREDIR, (long)CURL_REDIR_POST_301);
+ test_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_301);
}
test_setopt(curl, CURLOPT_CUSTOMREQUEST, "IGLOO");
test_setopt(curl, CURLOPT_VERBOSE, 1L);
test_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
- test_setopt(curl, CURLOPT_POSTREDIR, (long)CURL_REDIR_POST_301);
+ test_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_301);
/* include headers in the output */
test_setopt(curl, CURLOPT_HEADER, 1L);