]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: constify command-line arguments
authorViktor Szakats <commit@vsz.me>
Tue, 29 Jul 2025 09:27:48 +0000 (11:27 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 29 Jul 2025 11:44:50 +0000 (13:44 +0200)
For libtests, tunits, units.

Also:
- lib3033: tidy up headers.
- lib/netrc: constify an arg in `Curl_parsenetrc()`.

Closes #18076

292 files changed:
lib/netrc.c
lib/netrc.h
tests/libtest/first.c
tests/libtest/first.h
tests/libtest/lib1156.c
tests/libtest/lib1301.c
tests/libtest/lib1308.c
tests/libtest/lib1485.c
tests/libtest/lib1500.c
tests/libtest/lib1501.c
tests/libtest/lib1502.c
tests/libtest/lib1506.c
tests/libtest/lib1507.c
tests/libtest/lib1508.c
tests/libtest/lib1509.c
tests/libtest/lib1510.c
tests/libtest/lib1511.c
tests/libtest/lib1512.c
tests/libtest/lib1513.c
tests/libtest/lib1514.c
tests/libtest/lib1515.c
tests/libtest/lib1517.c
tests/libtest/lib1518.c
tests/libtest/lib1520.c
tests/libtest/lib1522.c
tests/libtest/lib1523.c
tests/libtest/lib1525.c
tests/libtest/lib1526.c
tests/libtest/lib1527.c
tests/libtest/lib1528.c
tests/libtest/lib1529.c
tests/libtest/lib1530.c
tests/libtest/lib1531.c
tests/libtest/lib1532.c
tests/libtest/lib1533.c
tests/libtest/lib1534.c
tests/libtest/lib1535.c
tests/libtest/lib1536.c
tests/libtest/lib1537.c
tests/libtest/lib1538.c
tests/libtest/lib1540.c
tests/libtest/lib1541.c
tests/libtest/lib1542.c
tests/libtest/lib1545.c
tests/libtest/lib1550.c
tests/libtest/lib1551.c
tests/libtest/lib1552.c
tests/libtest/lib1553.c
tests/libtest/lib1554.c
tests/libtest/lib1555.c
tests/libtest/lib1556.c
tests/libtest/lib1557.c
tests/libtest/lib1558.c
tests/libtest/lib1559.c
tests/libtest/lib1560.c
tests/libtest/lib1564.c
tests/libtest/lib1565.c
tests/libtest/lib1567.c
tests/libtest/lib1568.c
tests/libtest/lib1569.c
tests/libtest/lib1571.c
tests/libtest/lib1576.c
tests/libtest/lib1591.c
tests/libtest/lib1592.c
tests/libtest/lib1593.c
tests/libtest/lib1594.c
tests/libtest/lib1597.c
tests/libtest/lib1598.c
tests/libtest/lib1599.c
tests/libtest/lib1662.c
tests/libtest/lib1900.c
tests/libtest/lib1901.c
tests/libtest/lib1903.c
tests/libtest/lib1905.c
tests/libtest/lib1906.c
tests/libtest/lib1907.c
tests/libtest/lib1908.c
tests/libtest/lib1910.c
tests/libtest/lib1911.c
tests/libtest/lib1912.c
tests/libtest/lib1913.c
tests/libtest/lib1915.c
tests/libtest/lib1916.c
tests/libtest/lib1918.c
tests/libtest/lib1919.c
tests/libtest/lib1933.c
tests/libtest/lib1934.c
tests/libtest/lib1935.c
tests/libtest/lib1936.c
tests/libtest/lib1937.c
tests/libtest/lib1938.c
tests/libtest/lib1939.c
tests/libtest/lib1940.c
tests/libtest/lib1945.c
tests/libtest/lib1947.c
tests/libtest/lib1948.c
tests/libtest/lib1955.c
tests/libtest/lib1956.c
tests/libtest/lib1957.c
tests/libtest/lib1958.c
tests/libtest/lib1959.c
tests/libtest/lib1960.c
tests/libtest/lib1964.c
tests/libtest/lib1970.c
tests/libtest/lib1971.c
tests/libtest/lib1972.c
tests/libtest/lib1973.c
tests/libtest/lib1974.c
tests/libtest/lib1975.c
tests/libtest/lib1977.c
tests/libtest/lib1978.c
tests/libtest/lib2023.c
tests/libtest/lib2032.c
tests/libtest/lib2082.c
tests/libtest/lib2301.c
tests/libtest/lib2302.c
tests/libtest/lib2304.c
tests/libtest/lib2306.c
tests/libtest/lib2308.c
tests/libtest/lib2309.c
tests/libtest/lib2402.c
tests/libtest/lib2404.c
tests/libtest/lib2405.c
tests/libtest/lib2502.c
tests/libtest/lib2700.c
tests/libtest/lib3010.c
tests/libtest/lib3025.c
tests/libtest/lib3026.c
tests/libtest/lib3027.c
tests/libtest/lib3033.c
tests/libtest/lib3100.c
tests/libtest/lib3101.c
tests/libtest/lib3102.c
tests/libtest/lib3103.c
tests/libtest/lib3104.c
tests/libtest/lib3105.c
tests/libtest/lib3207.c
tests/libtest/lib3208.c
tests/libtest/lib500.c
tests/libtest/lib501.c
tests/libtest/lib502.c
tests/libtest/lib503.c
tests/libtest/lib504.c
tests/libtest/lib505.c
tests/libtest/lib506.c
tests/libtest/lib507.c
tests/libtest/lib508.c
tests/libtest/lib509.c
tests/libtest/lib510.c
tests/libtest/lib511.c
tests/libtest/lib512.c
tests/libtest/lib513.c
tests/libtest/lib514.c
tests/libtest/lib515.c
tests/libtest/lib516.c
tests/libtest/lib517.c
tests/libtest/lib518.c
tests/libtest/lib519.c
tests/libtest/lib520.c
tests/libtest/lib521.c
tests/libtest/lib523.c
tests/libtest/lib524.c
tests/libtest/lib525.c
tests/libtest/lib526.c
tests/libtest/lib530.c
tests/libtest/lib533.c
tests/libtest/lib536.c
tests/libtest/lib537.c
tests/libtest/lib539.c
tests/libtest/lib540.c
tests/libtest/lib541.c
tests/libtest/lib542.c
tests/libtest/lib543.c
tests/libtest/lib544.c
tests/libtest/lib547.c
tests/libtest/lib549.c
tests/libtest/lib552.c
tests/libtest/lib553.c
tests/libtest/lib554.c
tests/libtest/lib555.c
tests/libtest/lib556.c
tests/libtest/lib557.c
tests/libtest/lib558.c
tests/libtest/lib559.c
tests/libtest/lib560.c
tests/libtest/lib562.c
tests/libtest/lib564.c
tests/libtest/lib566.c
tests/libtest/lib567.c
tests/libtest/lib568.c
tests/libtest/lib569.c
tests/libtest/lib570.c
tests/libtest/lib571.c
tests/libtest/lib572.c
tests/libtest/lib573.c
tests/libtest/lib574.c
tests/libtest/lib575.c
tests/libtest/lib576.c
tests/libtest/lib578.c
tests/libtest/lib579.c
tests/libtest/lib582.c
tests/libtest/lib583.c
tests/libtest/lib586.c
tests/libtest/lib589.c
tests/libtest/lib590.c
tests/libtest/lib591.c
tests/libtest/lib597.c
tests/libtest/lib598.c
tests/libtest/lib599.c
tests/libtest/lib643.c
tests/libtest/lib650.c
tests/libtest/lib651.c
tests/libtest/lib652.c
tests/libtest/lib653.c
tests/libtest/lib654.c
tests/libtest/lib655.c
tests/libtest/lib658.c
tests/libtest/lib659.c
tests/libtest/lib661.c
tests/libtest/lib666.c
tests/libtest/lib667.c
tests/libtest/lib668.c
tests/libtest/lib670.c
tests/libtest/lib674.c
tests/libtest/lib676.c
tests/libtest/lib677.c
tests/libtest/lib678.c
tests/libtest/lib694.c
tests/libtest/lib695.c
tests/libtest/lib751.c
tests/libtest/lib753.c
tests/libtest/mk-lib1521.pl
tests/tunit/tool1394.c
tests/tunit/tool1604.c
tests/tunit/tool1621.c
tests/unit/README.md
tests/unit/unit1300.c
tests/unit/unit1302.c
tests/unit/unit1303.c
tests/unit/unit1304.c
tests/unit/unit1305.c
tests/unit/unit1307.c
tests/unit/unit1309.c
tests/unit/unit1323.c
tests/unit/unit1330.c
tests/unit/unit1395.c
tests/unit/unit1396.c
tests/unit/unit1397.c
tests/unit/unit1398.c
tests/unit/unit1399.c
tests/unit/unit1600.c
tests/unit/unit1601.c
tests/unit/unit1602.c
tests/unit/unit1603.c
tests/unit/unit1605.c
tests/unit/unit1606.c
tests/unit/unit1607.c
tests/unit/unit1608.c
tests/unit/unit1609.c
tests/unit/unit1610.c
tests/unit/unit1611.c
tests/unit/unit1612.c
tests/unit/unit1614.c
tests/unit/unit1615.c
tests/unit/unit1616.c
tests/unit/unit1620.c
tests/unit/unit1650.c
tests/unit/unit1651.c
tests/unit/unit1652.c
tests/unit/unit1653.c
tests/unit/unit1654.c
tests/unit/unit1655.c
tests/unit/unit1656.c
tests/unit/unit1657.c
tests/unit/unit1658.c
tests/unit/unit1660.c
tests/unit/unit1661.c
tests/unit/unit1663.c
tests/unit/unit1664.c
tests/unit/unit1979.c
tests/unit/unit1980.c
tests/unit/unit2600.c
tests/unit/unit2601.c
tests/unit/unit2602.c
tests/unit/unit2603.c
tests/unit/unit2604.c
tests/unit/unit3200.c
tests/unit/unit3205.c
tests/unit/unit3211.c
tests/unit/unit3212.c
tests/unit/unit3213.c
tests/unit/unit3214.c

index ab068b18e6e26a04734eed07f6be0d1563561838..447ee095852de8c4185b5eda752a3c26932e2d72 100644 (file)
@@ -390,7 +390,7 @@ const char *Curl_netrc_strerror(NETRCcode ret)
  */
 NETRCcode Curl_parsenetrc(struct store_netrc *store, const char *host,
                           char **loginp, char **passwordp,
-                          char *netrcfile)
+                          const char *netrcfile)
 {
   NETRCcode retcode = NETRC_OK;
   char *filealloc = NULL;
index ef3bde5212ad2f55aee3672345ac04c73ed712c4..0d6d081bfbb9e618b91e79d24ef65f3cdec21a2c 100644 (file)
@@ -48,7 +48,8 @@ void Curl_netrc_init(struct store_netrc *s);
 void Curl_netrc_cleanup(struct store_netrc *s);
 
 NETRCcode Curl_parsenetrc(struct store_netrc *s, const char *host,
-                          char **loginp, char **passwordp, char *filename);
+                          char **loginp, char **passwordp,
+                          const char *filename);
   /* Assume: (*passwordp)[0]=0, host[0] != 0.
    * If (*loginp)[0] = 0, search for login and password within a machine
    * section in the netrc.
index 0ca736668ba62aabf0fcf6971421fa3eb1c17bc4..acde2926c09ac257647b9c4c936a6746cd922254 100644 (file)
@@ -50,11 +50,11 @@ int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
   return select(nfds, rd, wr, exc, tv);
 }
 
-char *libtest_arg2 = NULL;
-char *libtest_arg3 = NULL;
-char *libtest_arg4 = NULL;
+const char *libtest_arg2 = NULL;
+const char *libtest_arg3 = NULL;
+const char *libtest_arg4 = NULL;
 int test_argc;
-char **test_argv;
+const char **test_argv;
 int testnum;
 
 struct curltime tv_test_start; /* for test timing */
@@ -98,12 +98,12 @@ char *hexdump(const unsigned char *buf, size_t len)
 }
 
 
-int main(int argc, char **argv)
+int main(int argc, const char **argv)
 {
-  char *URL;
+  const char *URL;
   CURLcode result;
   entry_func_t entry_func;
-  char *entry_name;
+  const char *entry_name;
   char *env;
   size_t tmp;
 
index a909290024a64c103e92c20b2703bfdd2d4bc28d..82b2e6aa645bbe8755a28699c26254450448938c 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <curl/curl.h>
 
-typedef CURLcode (*entry_func_t)(char *);
+typedef CURLcode (*entry_func_t)(const char *);
 
 struct entry_s {
   const char *name;
@@ -69,13 +69,13 @@ extern int unitfail; /* for unittests */
   if((res = curl_multi_setopt((A), (B), (C))) != CURLE_OK)      \
     goto test_cleanup
 
-extern char *libtest_arg2; /* set by first.c to the argv[2] or NULL */
-extern char *libtest_arg3; /* set by first.c to the argv[3] or NULL */
-extern char *libtest_arg4; /* set by first.c to the argv[4] or NULL */
+extern const char *libtest_arg2; /* set by first.c to the argv[2] or NULL */
+extern const char *libtest_arg3; /* set by first.c to the argv[3] or NULL */
+extern const char *libtest_arg4; /* set by first.c to the argv[4] or NULL */
 
 /* argc and argv as passed in to the main() function */
 extern int test_argc;
-extern char **test_argv;
+extern const char **test_argv;
 extern int testnum;
 extern struct curltime tv_test_start; /* for test timing */
 
index a3e08153724b69f0545a613c7244fa1c6b0a7f83..a04b884ca5d4aa1de9cccb2089e1dbd135c914a3 100644 (file)
@@ -131,7 +131,7 @@ test_cleanup:
 /* for debugging: */
 /* #define SINGLETEST 9 */
 
-static CURLcode test_lib1156(char *URL)
+static CURLcode test_lib1156(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 0691d6c31f49bd78d2cd87bb8cabb6fd01b48b7f..d476aed148360182034d6108dad63df03783008b 100644 (file)
@@ -32,7 +32,7 @@
     }                                                            \
   } while(0)
 
-static CURLcode test_lib1301(char *URL)
+static CURLcode test_lib1301(const char *URL)
 {
   int rc;
   (void)URL;
index 0db7fa84a3879168df539e2abd3095079eb94375..8e83462a7ade4664a6c6788996c3452df59b3100 100644 (file)
@@ -39,7 +39,7 @@ static size_t print_httppost_callback(void *arg, const char *buf, size_t len)
     }                                                            \
   } while(0)
 
-static CURLcode test_lib1308(char *URL)
+static CURLcode test_lib1308(const char *URL)
 {
   int errorcount = 0;
   CURLFORMcode rc;
index 50c851c640853c81b321057789c77b0d92034833..0ca017e3e73721cc816eef6b67185f97ec8f818a 100644 (file)
@@ -85,7 +85,7 @@ static size_t t1485_write_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return len;
 }
 
-static CURLcode test_lib1485(char *URL)
+static CURLcode test_lib1485(const char *URL)
 {
   CURL *curls = NULL;
   CURLcode res = CURLE_OK;
index 418db89503bd9af9ae8caa88fdb2820c504fa8d6..8529f66a44eb5cb438e8089967cf35994ed35844 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1500(char *URL)
+static CURLcode test_lib1500(const char *URL)
 {
   CURL *curls = NULL;
   CURLM *multi = NULL;
index 79f8353a6119807103543091d3680a08ceb2cbb3..61e586cd3dd92cc64a3b743128c70a8773665422 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1501(char *URL)
+static CURLcode test_lib1501(const char *URL)
 {
   static const long HANG_TIMEOUT = 30 * 1000;
   /* 500 milliseconds allowed. An extreme number but lets be really
index 39a73874308e4a1693068e9d37bbb566ed64f0db..22ac6e7c80aab5f9a18c5ed4a68d59fb1aa8ecba 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1502(char *URL)
+static CURLcode test_lib1502(const char *URL)
 {
   CURL *easy = NULL;
   CURL *dup;
index 764ca3fcedfb7cc38d37024d3b1c8b0625699a5e..0ae7ae928ce99302ec9a5471ff9ae0c389e93ea2 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1506(char *URL)
+static CURLcode test_lib1506(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl[NUM_HANDLES] = {0};
@@ -35,8 +35,8 @@ static CURLcode test_lib1506(char *URL)
   char target_url[256];
   char dnsentry[256];
   struct curl_slist *slist = NULL, *slist2;
-  char *port = libtest_arg3;
-  char *address = libtest_arg2;
+  const char *port = libtest_arg3;
+  const char *address = libtest_arg2;
 
   (void)URL;
 
index 4588f2af48048c171543ba38df3eca01370d6c37..d6671e3c15a4327ca5b606aef758bae451f5e57e 100644 (file)
@@ -42,7 +42,7 @@ static size_t t1507_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return CURL_READFUNC_ABORT;
 }
 
-static CURLcode test_lib1507(char *URL)
+static CURLcode test_lib1507(const char *URL)
 {
    static const int MULTI_PERFORM_HANG_TIMEOUT = 60 * 1000;
 
index d07bb28d8e6803f70a7e44687a5ab5f4e8d1f494..a305e652ff2215a6c358fbecf58ea0e2abecb836 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1508(char *URL)
+static CURLcode test_lib1508(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURLM *m = NULL;
index 1cc76845cbd20ec8a97ef83cef77fa59a3ad056c..a0d820903ae9f029b953ed3e20e795d62b0e2116 100644 (file)
@@ -30,7 +30,7 @@ size_t WriteHeader(char *ptr, size_t size, size_t nmemb, void *stream);
 
 static unsigned long realHeaderSize = 0;
 
-static CURLcode test_lib1509(char *URL)
+static CURLcode test_lib1509(const char *URL)
 {
   long headerSize;
   CURLcode code;
index 13ee0b724e140937be4740b533bb958095c2fb1e..e914d48eb78ce7ac83ab4dced533aa792c027ac2 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1510(char *URL)
+static CURLcode test_lib1510(const char *URL)
 {
   static const int NUM_URLS = 4;
 
@@ -35,8 +35,8 @@ static CURLcode test_lib1510(char *URL)
   char target_url[256];
   char dnsentry[256];
   struct curl_slist *slist = NULL, *slist2;
-  char *port = libtest_arg3;
-  char *address = libtest_arg2;
+  const char *port = libtest_arg3;
+  const char *address = libtest_arg2;
 
   (void)URL;
 
index 5062cae32abe9725806cb5a3c6875e2e00c2c1ce..de09d2a6fa932a2ca471a9830c3f53074a866478 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1511(char *URL)
+static CURLcode test_lib1511(const char *URL)
 {
   long unmet;
   CURL *curl = NULL;
index 2841be63fb78b95a0a5a626359698f6687150fe6..589d903d7551c4f791430018d655c8f1b055670e 100644 (file)
 
 #include "memdebug.h"
 
-static CURLcode test_lib1512(char *URL)
+static CURLcode test_lib1512(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl[2] = {NULL, NULL};
-  char *port = libtest_arg3;
-  char *address = libtest_arg2;
+  const char *port = libtest_arg3;
+  const char *address = libtest_arg2;
   char dnsentry[256];
   struct curl_slist *slist = NULL;
   size_t i;
index 0584dd99916c73cbf236f87391b0a1f50c2f26c3..c86c5185e23ea230424d1c686567add30e2ed1c5 100644 (file)
@@ -47,7 +47,7 @@ static int progressKiller(void *arg,
   return 1;
 }
 
-static CURLcode test_lib1513(char *URL)
+static CURLcode test_lib1513(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 33c4f2ab0338386750ae8b8579f2ffa3bcaafd3c..265f47af08d380e304a701e1e6a667550a01555f 100644 (file)
@@ -52,7 +52,7 @@ static size_t t1514_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode test_lib1514(char *URL)
+static CURLcode test_lib1514(const char *URL)
 {
   CURL *curl;
   CURLcode result = CURLE_OK;
index 473c2e36bdbe186fb652cfef04c63de2c9c6ba48..64140977b553104a49d8b74f445c6e3663b6207c 100644 (file)
@@ -35,7 +35,7 @@
 
 #define DNS_TIMEOUT 1L
 
-static CURLcode do_one_request(CURLM *m, char *URL, char *resolve)
+static CURLcode do_one_request(CURLM *m, const char *URL, const char *resolve)
 {
   CURL *curls;
   struct curl_slist *resolve_list = NULL;
@@ -100,13 +100,13 @@ test_cleanup:
   return res;
 }
 
-static CURLcode test_lib1515(char *URL)
+static CURLcode test_lib1515(const char *URL)
 {
   CURLM *multi = NULL;
   CURLcode res = CURLE_OK;
-  char *address = libtest_arg2;
-  char *port = libtest_arg3;
-  char *path = URL;
+  const char *path = URL;
+  const char *address = libtest_arg2;
+  const char *port = libtest_arg3;
   char dns_entry[256];
   int i;
   int count = 2;
index bb1d3f248a6584038944e2dcf76adbfbdb8c9019..c542aad032d488cc07f5bcdfc618001efdb0f4b6 100644 (file)
@@ -51,7 +51,7 @@ static size_t t1517_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return tocopy;
 }
 
-static CURLcode test_lib1517(char *URL)
+static CURLcode test_lib1517(const char *URL)
 {
   static const char testdata[] =
     "this is what we post to the silly web server\n";
index 3d93cf5edddccdcf8d16359476326db857fcb36d..63e861910dd15b8301d98e3e8f71653c8a33493b 100644 (file)
@@ -37,7 +37,7 @@ static size_t t1518_write_cb(char *buffer, size_t size, size_t nitems,
   return 0;
 }
 
-static CURLcode test_lib1518(char *URL)
+static CURLcode test_lib1518(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 76e5d5f0ec0508b775a8a38438bd51806b45b9fd..9d6b3b611d507f1b5b174346021a132060a88811 100644 (file)
@@ -71,7 +71,7 @@ static size_t t1520_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;
 }
 
-static CURLcode test_lib1520(char *URL)
+static CURLcode test_lib1520(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 1057ef7e3d687cc34b49ad24763746fe5b359a7a..569c46c527561e63b87c68e0549690f455e3d8f9 100644 (file)
@@ -45,7 +45,7 @@ static int sockopt_callback(void *clientp, curl_socket_t curlfd,
   return CURL_SOCKOPT_OK;
 }
 
-static CURLcode test_lib1522(char *URL)
+static CURLcode test_lib1522(const char *URL)
 {
   static char g_Data[40 * 1024]; /* POST 40KB */
 
index 13f3755326ffe72a334c46dcd70f1b349bb5f0ba..77767b20bec67759055e902f9465df0840b9f562 100644 (file)
@@ -53,7 +53,7 @@ static CURLcode run(CURL *hnd, long limit, long time)
   return curl_easy_perform(hnd);
 }
 
-static CURLcode test_lib1523(char *URL)
+static CURLcode test_lib1523(const char *URL)
 {
   CURLcode ret;
   CURL *hnd;
index 375d6aef51ab6e0dfbc5c1f23ee5241c62438089..7e7d98ef7997d07d8b3a41694fcaf94a1a30cc00 100644 (file)
@@ -45,7 +45,7 @@ static size_t t1525_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
   return strlen(t1525_testdata);
 }
 
-static CURLcode test_lib1525(char *URL)
+static CURLcode test_lib1525(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_FAILED_INIT;
index c2e3685a158031d428ee53c02c486fb0fc7dab16..bf2a07ee9dfe5e24fca033de3012ef322530c586 100644 (file)
@@ -44,7 +44,7 @@ static size_t t1526_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
   return strlen(t1526_testdata);
 }
 
-static CURLcode test_lib1526(char *URL)
+static CURLcode test_lib1526(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_FAILED_INIT;
index 35e06b45aefd60b07fa06ec2581c84e55aba1aef..3624728687992b0334bce25641e7d8e4e8ee7f4c 100644 (file)
@@ -44,7 +44,7 @@ static size_t t1527_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
   return strlen(t1527_testdata);
 }
 
-static CURLcode test_lib1527(char *URL)
+static CURLcode test_lib1527(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_FAILED_INIT;
index 24293a01888e14fca77c4d9d652f1f1fb0b71079..98bd2bdaf18aa0285f86bd245238c4b69359285f 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1528(char *URL)
+static CURLcode test_lib1528(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_FAILED_INIT;
index 290343bc96d27c10b9841e767826dbb028bedfd8..ae86b61a5e67f29e6a0a6b5f020443cd4ce5850f 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1529(char *URL)
+static CURLcode test_lib1529(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_FAILED_INIT;
index aa0529b3dd7c3bbd76e047cbd800dd62d81be134..19b0d9cbde38eb19bd1fdf0327b12b577ac96028 100644 (file)
@@ -36,7 +36,7 @@ static curl_socket_t opensocket(void *clientp,
   return CURL_SOCKET_BAD;
 }
 
-static CURLcode test_lib1530(char *URL)
+static CURLcode test_lib1530(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_FAILED_INIT;
index 38626222d91e3a20ade0e845f9a42d9706dbfd60..9d4cd77539937d9056460470e3c89cf5420688f7 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1531(char *URL)
+static CURLcode test_lib1531(const char *URL)
 {
   static char const testData[] = ".abc\0xyz";
   static curl_off_t const testDataSize = sizeof(testData) - 1;
index 94e29cb29cb1564fdab0af921d96c43f4044ca8d..83a826de32d2dc06285bd0a84737ca3072ed4905 100644 (file)
@@ -27,7 +27,7 @@
 
 /* Test CURLINFO_RESPONSE_CODE */
 
-static CURLcode test_lib1532(char *URL)
+static CURLcode test_lib1532(const char *URL)
 {
   CURL *curl;
   long httpcode;
index f74f612f729f6b44a7b1608e209f054ccb6792b0..15256deaf0601eff32e49a5489a1a2f652be4911 100644 (file)
@@ -123,7 +123,7 @@ static CURLcode perform_and_check_connections(CURL *curl,
 }
 
 
-static CURLcode test_lib1533(char *URL)
+static CURLcode test_lib1533(const char *URL)
 {
   struct cb_data data;
   CURL *curl = NULL;
index d99b135a24957675505202d27500c423bbb4297d..af1c0bd52020bc13c2746bcbae92beb00396d44a 100644 (file)
@@ -27,7 +27,7 @@
 
 /* Test CURLINFO_FILETIME */
 
-static CURLcode test_lib1534(char *URL)
+static CURLcode test_lib1534(const char *URL)
 {
   CURL *curl, *dupe = NULL;
   long filetime;
index 602f71717f1d924e86b207ae57eff3e726a48688..07a97dde0b6204c435a95a3cc2de88f9e0a267bc 100644 (file)
@@ -27,7 +27,7 @@
 
 /* Test CURLINFO_PROTOCOL */
 
-static CURLcode test_lib1535(char *URL)
+static CURLcode test_lib1535(const char *URL)
 {
   CURL *curl, *dupe = NULL;
   long protocol;
index dd0a2bf7d5699ffa40cf28615efd8bfa83583514..3219724b9aefb64cd538cb7834a8b94d15ef7959 100644 (file)
@@ -27,7 +27,7 @@
 
 /* Test CURLINFO_SCHEME */
 
-static CURLcode test_lib1536(char *URL)
+static CURLcode test_lib1536(const char *URL)
 {
   CURL *curl, *dupe = NULL;
   char *scheme;
index 56f018395c0e513468f497f261be3ea3e0cb9b58..52272cb2ec972f49391a8b83afd72293565f7be7 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1537(char *URL)
+static CURLcode test_lib1537(const char *URL)
 {
   const unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
                              0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
index fc816d358d5ce3fb3d44c4fb75208ff3efc6c60b..396ca7901030a1e3ee5e44222fa98fa7767db8e6 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1538(char *URL)
+static CURLcode test_lib1538(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURLcode easyret;
index b53a3e847d53a693c860b265f16da3bbefe90b50..e54fdd515b88fe80fa29a6a1dd26bece5306900d 100644 (file)
@@ -81,7 +81,7 @@ static size_t t1540_write_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return CURL_WRITEFUNC_PAUSE;
 }
 
-static CURLcode test_lib1540(char *URL)
+static CURLcode test_lib1540(const char *URL)
 {
   CURL *curls = NULL;
   CURLcode res = CURLE_OK;
index 314be84792d3c5389e188488233f3dde346dbff8..ccbb5e8f43e83eb2cd09cb946e84678455ab3033 100644 (file)
@@ -108,7 +108,7 @@ static size_t t1541_write_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return size * nmemb;
 }
 
-static CURLcode test_lib1541(char *URL)
+static CURLcode test_lib1541(const char *URL)
 {
   CURL *curls = NULL;
   CURLcode res = CURLE_OK;
index f78999e2361a60b84d19ba15cb1985f71ba0aab4..1f7dbed0a8a56d30e6771a7a17d6b07b1a3fd6bb 100644 (file)
@@ -35,7 +35,7 @@
 #include "testtrace.h"
 #include "memdebug.h"
 
-static CURLcode test_lib1542(char *URL)
+static CURLcode test_lib1542(const char *URL)
 {
   CURL *easy = NULL;
   CURLcode res = CURLE_OK;
index e29c872f5f09c4a008409b69e768e76dec0cbd0d..ac59d028c01d1584c8aca258549e9e1514ae03fe 100644 (file)
@@ -23,7 +23,7 @@
  ***************************************************************************/
 #include "first.h"
 
-static CURLcode test_lib1545(char *URL)
+static CURLcode test_lib1545(const char *URL)
 {
   CURL *eh = NULL;
   CURLcode res = CURLE_OK;
index 29e8407d3be6c1a6c0496020090a1300c652f2ec..6fedbf68848cdcd5ae4e3880fb6d46b2f5fe16cf 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <curl/multi.h>
 
-static CURLcode test_lib1550(char *URL)
+static CURLcode test_lib1550(const char *URL)
 {
   CURLM *handle;
   CURLcode res = CURLE_OK;
index e6162eff6f0a0f27b1991b21312167325270be1b..80020f55566d578a55e5df8173667a158d97d63f 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <curl/multi.h>
 
-static CURLcode test_lib1551(char *URL)
+static CURLcode test_lib1551(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 7d55e2873f231c928734776ef45b14792348e39f..a5b23fbd8b6579b427121144778d013b08f84adf 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1552(char *URL)
+static CURLcode test_lib1552(const char *URL)
 {
   CURL *curls = NULL;
   CURLM *multi = NULL;
index 5a31f48a0956a30c6baa904df1c32495222c130a..8be90d7d3c9a6d93fe66ce8a613ef12041c345a1 100644 (file)
@@ -39,7 +39,7 @@ static int t1553_xferinfo(void *p,
   return 1; /* fail as fast as we can */
 }
 
-static CURLcode test_lib1553(char *URL)
+static CURLcode test_lib1553(const char *URL)
 {
   CURL *curls = NULL;
   CURLM *multi = NULL;
index 51084a2c2036714cd4d35be116268ec22be6ae30..240fea657791b94f590639a15871fafec52a295a 100644 (file)
@@ -56,7 +56,7 @@ static void t1554_test_unlock(CURL *handle, curl_lock_data data, void *useptr)
 }
 
 /* test function */
-static CURLcode test_lib1554(char *URL)
+static CURLcode test_lib1554(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURLSH *share = NULL;
index 51692fab67f31fd75bfb23c63139eecb76effd6e..4ebde5c74c6df06f52fe21b9066a236c6f5c13ab 100644 (file)
@@ -53,7 +53,7 @@ static int progressCallback(void *arg,
   return 1;
 }
 
-static CURLcode test_lib1555(char *URL)
+static CURLcode test_lib1555(const char *URL)
 {
   CURLcode res = CURLE_OK;
 
index 2bdb00361544cd4cbb3e2752ea0370dbf7d83e5c..20b86b4e9831f3222acb7b4d260267d50bd3592c 100644 (file)
@@ -42,7 +42,7 @@ static size_t header(char *ptr, size_t size, size_t nmemb, void *stream)
   return nmemb * size;
 }
 
-static CURLcode test_lib1556(char *URL)
+static CURLcode test_lib1556(const char *URL)
 {
   CURLcode code;
   CURL *curl = NULL;
index 4aeba4085345fb00acbe3502830664d965bc4a44..2381c07b6a19d757b6222115fbdd425ff5ce5995 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1557(char *URL)
+static CURLcode test_lib1557(const char *URL)
 {
   CURLM *curlm = NULL;
   CURL *curl1 = NULL;
index a91e14ad0794b4a2dac2d99f440c897f5aac6bb9..1bbc0f77b75f87f22c9ef8c3691902332b5b5bf4 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1558(char *URL)
+static CURLcode test_lib1558(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl = NULL;
index f1ce42e35c4d386a57a66fe4c5f564a93debe380..2337e7b62d7f995467b6a1fe9b874f4e83571ffd 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1559(char *URL)
+static CURLcode test_lib1559(const char *URL)
 {
   static const int EXCESSIVE = 10*1000*1000;
 
index 88c54097e13521b03f44f47bfcbe2c4a5650cff4..2171034d3c76f06cbdadbe8394494af4f7c28199 100644 (file)
@@ -2028,7 +2028,7 @@ err:
   return 1;
 }
 
-static CURLcode test_lib1560(char *URL)
+static CURLcode test_lib1560(const char *URL)
 {
   bool has_utf8 = !!getenv("CURL_TEST_HAVE_CODESET_UTF8");
 
index fec8581e92a3b5c3ebeeac501ffd6e4354aa385c..283f9dcf399fc1ea68d970eef048feb16ac74915 100644 (file)
@@ -27,7 +27,7 @@
 
 #define WAKEUP_NUM 10
 
-static CURLcode test_lib1564(char *URL)
+static CURLcode test_lib1564(const char *URL)
 {
   CURLM *multi = NULL;
   int numfds;
index 620cbbe592f10892fafca71eb2fb8195fa229048..4d38da06f2d1552abe52dbff7701b53a0aa46c00 100644 (file)
@@ -85,7 +85,7 @@ test_cleanup:
   return NULL;
 }
 
-static CURLcode test_lib1565(char *URL)
+static CURLcode test_lib1565(const char *URL)
 {
   int still_running;
   int num;
@@ -199,7 +199,7 @@ test_cleanup:
 }
 
 #else /* without pthread, this test doesn't work */
-static CURLcode test_lib1565(char *URL)
+static CURLcode test_lib1565(const char *URL)
 {
   (void)URL;
   return CURLE_OK;
index bdac6c6afa8de7a7595c8749eedc0c8571ac11b5..e0016157256e80713070a2ee2c17a5c6597c047d 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <curl/multi.h>
 
-static CURLcode test_lib1567(char *URL)
+static CURLcode test_lib1567(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_OK;
index eb8d31e926292232310a241ba9c01c767dbd3ad7..a2451486fd41715ce163d8699dc67f6a61568588 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1568(char *URL)
+static CURLcode test_lib1568(const char *URL)
 {
   CURLcode ret;
   CURL *hnd;
index a29ed65f68504b33f357d735f6fa23974bdaa76f..2846909e88f33b8576c513deaa0fcea151f543f3 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1569(char *URL)
+static CURLcode test_lib1569(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *hnd;
index e18b5c3f21cd67ec64638b5e3fd9d829b6c2dd89..a4923e919662bb2ad8d76d9a8644960583bac8a9 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1571(char *URL)
+static CURLcode test_lib1571(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index c9b1c9d7ce66a76e169fe3c5e3c1450a25999298..203ef2b9891e92f44c3cae062872e8458c41b11e 100644 (file)
@@ -47,7 +47,7 @@ static int t1576_seek_callback(void *ptr, curl_off_t offset, int origin)
   return CURL_SEEKFUNC_OK;
 }
 
-static CURLcode test_lib1576(char *URL)
+static CURLcode test_lib1576(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 13590c1e94a86447ddf435fcafe32a97c1da03a8..3031ba1bb71c8da61d6556bd2dc6c19607165416 100644 (file)
@@ -74,7 +74,7 @@ static int t1591_trailers_callback(struct curl_slist **list, void *userdata)
   }
 }
 
-static CURLcode test_lib1591(char *URL)
+static CURLcode test_lib1591(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_FAILED_INIT;
index a64dfb84c28c076deda0600c00d4e28949392bcd..3f76a19c4f50bbd7581fe6cde67f5f08266fab22 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "first.h"
 
-static CURLcode test_lib1592(char *URL)
+static CURLcode test_lib1592(const char *URL)
 {
   int stillRunning;
   CURLM *multiHandle = NULL;
index 44d8bf1e1da021c4c292790e7e502a6af929a5da..22a07e29209b6f4df82ad912f2e957956b23fc1d 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1593(char *URL)
+static CURLcode test_lib1593(const char *URL)
 {
   struct curl_slist *header = NULL;
   long unmet;
index 283cea1b89f9655bcb035274a198f3b6970ff5bb..5c8db3ae92ae7b3099eb97464a52e08891254fe6 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1594(char *URL)
+static CURLcode test_lib1594(const char *URL)
 {
   struct curl_slist *header = NULL;
   curl_off_t retry;
index ab669c35b17f774b65479f100daeaa52900d0555..251016641e7af6de7a36d9a1ecf13fbb5cfd9281 100644 (file)
@@ -33,7 +33,7 @@ struct pair {
   CURLcode *exp;
 };
 
-static CURLcode test_lib1597(char *URL)
+static CURLcode test_lib1597(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = CURLE_OK;
index 72b18d4c531cb4b274e36de469e344c072f92b68..4120916ff0ab1a0d19a87d1f0a5ffa8ec67cd9fd 100644 (file)
@@ -52,7 +52,7 @@ static int t1598_trailers_callback(struct curl_slist **list, void *userdata)
   }
 }
 
-static CURLcode test_lib1598(char *URL)
+static CURLcode test_lib1598(const char *URL)
 {
   static const char *post_data = "xxx=yyy&aaa=bbbbb";
 
index 73ca9e18f6dc963760484e370e4ef8fde26fc57d..5bbdad81b2eea7a295a0e33d7a3a52169af7eb8e 100644 (file)
@@ -23,7 +23,7 @@
  ***************************************************************************/
 #include "first.h"
 
-static CURLcode test_lib1599(char *URL)
+static CURLcode test_lib1599(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 5ac7e1246df30bc9aadccb797643b6721d5fa60b..b0ca4c5094c97e8bd43b47c27680989ddc591d84 100644 (file)
@@ -46,7 +46,7 @@ static size_t t1662_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode test_lib1662(char *URL)
+static CURLcode test_lib1662(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *hnd;
index a3932de5b81c1715e77fb7947299e5200bd8789a..3e9c60f4a8e0989df8dd0978e47ec3f821c55d06 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1900(char *URL)
+static CURLcode test_lib1900(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *hnd = NULL;
index d326a2172e10297e8ab8b9c39baf96747eeffc75..cb66001f9bb20c32e6e2957bc46b13c5526ba78d 100644 (file)
@@ -47,7 +47,7 @@ static size_t t1901_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
   return 0;
 }
 
-static CURLcode test_lib1901(char *URL)
+static CURLcode test_lib1901(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 3c99a99a478520a11fbb49db0aff7602d0586c4e..af21e946b924ad01d5db0db8f7c80f973672a2ff 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1903(char *URL)
+static CURLcode test_lib1903(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *ch = NULL;
index abc7a52c716419340c9c04404b2399a783489865..a227a09beb438c7dc795e6953808a6bfd2c80c8d 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1905(char *URL)
+static CURLcode test_lib1905(const char *URL)
 {
   CURLSH *sh = NULL;
   CURL *ch = NULL;
index 010434be1c40b9f7535d1b6d07c26f0133554d34..72486d6227c787dfd72660f7a04f8077718f143d 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1906(char *URL)
+static CURLcode test_lib1906(const char *URL)
 {
   CURLcode res = CURLE_OK;
   char *url_after = NULL;
index 98d7f68c5302a883c31645e9b2f8bab34fe261be..11088e2edfb9ae82918924d144d2f10cbfcb50bc 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1907(char *URL)
+static CURLcode test_lib1907(const char *URL)
 {
   char *url_after;
   CURL *curl;
index 57982b9bd64870c0efafcb37ff26a764471ed936..98e01fac9a085055ddb84087734107f01bc800ed 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1908(char *URL)
+static CURLcode test_lib1908(const char *URL)
 {
   CURLcode ret = CURLE_OK;
   CURL *hnd;
index da83f66491f46b76a6cef4e640f206f672591e7b..6164d595459b0213a4fb3cb57d27799fe5bce852 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1910(char *URL)
+static CURLcode test_lib1910(const char *URL)
 {
   CURLcode ret = CURLE_OK;
   CURL *hnd;
index b9d8c30f1e0728db8660cdfad9a5750bea0b77c6..149986f656b7a4d10d6d321579d1d4eeb4a1ca0a 100644 (file)
@@ -29,7 +29,7 @@
    define not publicly exposed so we set our own */
 #define MAX_INPUT_LENGTH 8000000
 
-static CURLcode test_lib1911(char *URL)
+static CURLcode test_lib1911(const char *URL)
 {
   static char testbuf[MAX_INPUT_LENGTH + 2];
 
index e74808c3c09043878472c8ac9f513c7ef91f230d..dd3e638816565a7396bfe382a22fc2280688087a 100644 (file)
@@ -29,7 +29,7 @@
   curl_mfprintf(stderr, "Type mismatch for CURLOPT_%s (expected %s)\n", \
                 name, exp)
 
-static CURLcode test_lib1912(char *URL)
+static CURLcode test_lib1912(const char *URL)
 {
 /* Only test if GCC typechecking is available */
   int error = 0;
index b33a5face86f1a971c063b2f92258b592427c7f5..e0519aef296da3222859e2f34047f8ab5e55bb01 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1913(char *URL)
+static CURLcode test_lib1913(const char *URL)
 {
   CURLcode ret = CURLE_OK;
   CURL *hnd;
index 3c4d4bb34df264de91bb0d768497c16d6fac18b2..95928df9643fe11b91ae5ab414d236d74c123ea7 100644 (file)
@@ -95,7 +95,7 @@ static CURLSTScode hstswrite(CURL *easy, struct curl_hstsentry *e,
  * Read/write HSTS cache entries via callback.
  */
 
-static CURLcode test_lib1915(char *URL)
+static CURLcode test_lib1915(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *hnd;
index 9dcbd45c0ccbf13166723607ef9724e1a89b4160..24583ab8a1894dbc4e3ed4b8e67130edcb408250 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1916(char *URL)
+static CURLcode test_lib1916(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 1f40962cd5d86af56b27c9d1d9b70256b12f0d56..86fa84c92f5ea07bfabaaacdb4f1823ef2688335 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1918(char *URL)
+static CURLcode test_lib1918(const char *URL)
 {
   const struct curl_easyoption *o;
   (void)URL;
index e86e6d53c4b74390e876bab7c080e37f7a241041..a619850dc718f654f133944db2a31543fcd0f21b 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1919(char *URL)
+static CURLcode test_lib1919(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl;
index 67b93a170dee74ea8c7d3c51cfbd7f7eca06a901..bdd914a641ef31e375b91321bfddba1626cd352d 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1933(char *URL)
+static CURLcode test_lib1933(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 097ccecfd67991471e43b24ad7b5df650af33ffa..2cffaa9bc790ef19e9d8796c29f164ee8f960881 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1934(char *URL)
+static CURLcode test_lib1934(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 4be038f70826000f992c14a2e6374c767ec62881..4f6a1ebb731c12fdb180def08385a31ed22cf033 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1935(char *URL)
+static CURLcode test_lib1935(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 9992507d94ffee70c121a4ddfd2023cf688d782b..438cf92c58e05a26796cfecd3f06150639238cca 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1936(char *URL)
+static CURLcode test_lib1936(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index be69974039d9807f0d6976dd0581d73d48bb2c6f..4903f7409a5cd841222e27c86c131311e0219c2e 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1937(char *URL)
+static CURLcode test_lib1937(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 90707c8553e088aa2fc3ce3e1bf33d3b6ebbaaea..c0bfb6b8ced99387043bc03ec53c2818d02b406e 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1938(char *URL)
+static CURLcode test_lib1938(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index a909bb7333a85a204042be923917876dd708a61b..61199900df49bf81d1225574450220a7bfa30570 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1939(char *URL)
+static CURLcode test_lib1939(const char *URL)
 {
   CURLM *multi;
   CURL *easy;
index cfd5ab6b61396eba6a436de4edc32e6030bdde83..c78564dd1a795bbc1a2bfdb1e4ab7f1ba1a34b3d 100644 (file)
@@ -77,7 +77,7 @@ static void t1940_showem(CURL *easy, int header_request, unsigned int type)
   }
 }
 
-static CURLcode test_lib1940(char *URL)
+static CURLcode test_lib1940(const char *URL)
 {
   CURL *easy = NULL;
   CURLcode res = CURLE_OK;
index 334047ca3ece0a8f1dd714fcd8c1fa20c3c3ac6d..ec280e6da9eb621f24ce12391e7e10e004105b69 100644 (file)
@@ -46,7 +46,7 @@ static size_t t1945_write_cb(char *data, size_t n, size_t l, void *userp)
   return n*l;
 }
 
-static CURLcode test_lib1945(char *URL)
+static CURLcode test_lib1945(const char *URL)
 {
   CURL *easy;
   CURLcode res = CURLE_OK;
index a6c0555506556bea3d0723e25ff058b6e346a871..19fbcb7af41751f6c771644e993e8f5136587e17 100644 (file)
@@ -33,7 +33,7 @@ static size_t t1947_write_cb(char *data, size_t n, size_t l, void *userp)
   return n*l;
 }
 
-static CURLcode test_lib1947(char *URL)
+static CURLcode test_lib1947(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 056799976258978f728bf460f5b543711424ebb8..98fa91e8d5c9c23d980d9ff75a0fb3413940bef8 100644 (file)
@@ -40,7 +40,7 @@ static size_t put_callback(char *ptr, size_t size, size_t nmemb, void *stream)
   return tocopy;
 }
 
-static CURLcode test_lib1948(char *URL)
+static CURLcode test_lib1948(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 0206b81ad759c4e45bc6ec64316a01828c1e3171..e47a52275e74ca15c2d12ff4cd99176075fa06c6 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1955(char *URL)
+static CURLcode test_lib1955(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index d2ffdd912e0465debda4fd1d41e670afb7b948db..0f1c72e3d2e27bcd1c1d5a84bda06e86fa0deed9 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1956(char *URL)
+static CURLcode test_lib1956(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 99ff21a6b0db2c514d1dec99d71b5a8f751151b7..8eeed09b7c341c53492f54945ce133c8b3267e5a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1957(char *URL)
+static CURLcode test_lib1957(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 811ff2c0e69b0045c6bc6200df28401aca64647e..7a94c76709a3f6d68ac58abe8383131bee2b6ac8 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1958(char *URL)
+static CURLcode test_lib1958(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 1b1f5b5731d00d8cd13d7aebeec90428907b812d..d718149772e3cb96f7810410332d6ff6d3f39b61 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1959(char *URL)
+static CURLcode test_lib1959(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index ef8b3b8308488acb60aa270ec9facbdde86ee889..5cdc0224260c5dfbe3f8f368834d66342b9caa8e 100644 (file)
@@ -72,7 +72,7 @@ static int sockopt_cb(void *clientp,
 
 
 /* Expected args: URL IP PORT */
-static CURLcode test_lib1960(char *URL)
+static CURLcode test_lib1960(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = TEST_ERR_MAJOR_BAD;
@@ -144,7 +144,7 @@ test_cleanup:
   return res;
 }
 #else
-static CURLcode test_lib1960(char *URL)
+static CURLcode test_lib1960(const char *URL)
 {
   (void)URL;
   curl_mprintf("lacks inet_pton\n");
index ddc47ee956dcbc1aa3f3b356f9bfc6cbb20ca9c2..cbad31dcc00f8e049b33f195b922507c8f1f6cb0 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1964(char *URL)
+static CURLcode test_lib1964(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 5e2f8cc4b9f95ddf281a162f1a4c49a90c5e4ff1..5ba51f6a58f22bdd8456377551b0f008a1271d41 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1970(char *URL)
+static CURLcode test_lib1970(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index e67b9022b37cfca31abc6fba5624567ef0294b19..03b254c1c579d001fd0c6f449eaffd8578162ac0 100644 (file)
@@ -34,7 +34,7 @@ static size_t t1971_read_cb(char *ptr, size_t size, size_t nitems, void *userp)
   return 0;
 }
 
-static CURLcode test_lib1971(char *URL)
+static CURLcode test_lib1971(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index d268be5b93d546c2eb94615a7d90955dc9f6fdde..ec9c9b06988f9f45124727a7d64bf1f576ee565a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1972(char *URL)
+static CURLcode test_lib1972(const char *URL)
 {
   CURL *curl;
   curl_mime *mime = NULL;
index a3afd3bba5cb9483d7a94a61f5ff12a96a02d93f..e887e80c2e0baac12cc5683390eb72ccfe527e66 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1973(char *URL)
+static CURLcode test_lib1973(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index 4640e188736964d0e3a89ee024f024d6b6956d23..b2d0b59450eac047627cfd037d670f7d8d76fa57 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1974(char *URL)
+static CURLcode test_lib1974(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index cc8483fe575b8e562911a679b97d76fbf26ef20a..95db9ae58df6ddcfb707158e7d517f58ed511471 100644 (file)
@@ -34,7 +34,7 @@ static size_t t1975_read_cb(char *ptr, size_t size, size_t nitems, void *userp)
   return 0;
 }
 
-static CURLcode test_lib1975(char *URL)
+static CURLcode test_lib1975(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index a9294609ac88e0218dfc608640871980a538c521..dae8bcbae70b555f60225a659c162076f778e46d 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1977(char *URL)
+static CURLcode test_lib1977(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURLU *curlu = curl_url();
index 6ab0a034beaf956e0c71df88805bef75a5d83a70..113f06da8f3b4d27027a00d3537596ff10ce212e 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib1978(char *URL)
+static CURLcode test_lib1978(const char *URL)
 {
   CURL *curl;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index eb8e357da894f1bb3c8baba2a33b0f249c5950a5..8c181fa093386bbdbcd383090de061b9951cbe8c 100644 (file)
@@ -83,7 +83,7 @@ static long parse_auth_name(const char *arg)
   return CURLAUTH_NONE;
 }
 
-static CURLcode test_lib2023(char *URL)  /* libauthretry */
+static CURLcode test_lib2023(const char *URL)  /* libauthretry */
 {
   CURLcode res;
   CURL *curl = NULL;
index 993626bb35f4fbe68cc008e79df9ef2471fbe5d6..5bca7d87285ec7e6c1db72332821bc72e3023da6 100644 (file)
@@ -76,7 +76,7 @@ static size_t callback(char *ptr, size_t size, size_t nmemb, void *data)
   return size * nmemb;
 }
 
-static CURLcode test_lib2032(char *URL)  /* libntlmconnect */
+static CURLcode test_lib2032(const char *URL)  /* libntlmconnect */
 {
   enum HandleState {
     ReadyForNewHandle,
index f497de7a70c00a1dc4c403a77da56e0665bedada..093eebda31545b6065e7ad254b608c9375ec0d3d 100644 (file)
@@ -51,7 +51,7 @@ static int prereq_callback(void *clientp,
   return prereq_cb->prereq_retcode;
 }
 
-static CURLcode test_lib2082(char *URL)  /* libprereq */
+static CURLcode test_lib2082(const char *URL)  /* libprereq */
 {
   struct prcs prereq_cb;
   CURLcode ret = CURLE_OK;
index 08c5d9d5439c26a3a9f77b6765fc88f9b1840c50..1a2eeb881aef551385c2530737a0076aa94ee958 100644 (file)
@@ -120,7 +120,7 @@ static size_t t2301_write_cb(char *b, size_t size, size_t nitems, void *p)
 }
 #endif
 
-static CURLcode test_lib2301(char *URL)
+static CURLcode test_lib2301(const char *URL)
 {
 #ifndef CURL_DISABLE_WEBSOCKETS
   CURL *curl;
index 1251d65749ba480feaa630e4fcfeb6a8159e13bd..d72761a8510b79eb430a501d97eb78af15d10707 100644 (file)
@@ -92,7 +92,7 @@ static size_t t2302_write_cb(char *buffer, size_t size, size_t nitems, void *p)
 }
 #endif
 
-static CURLcode test_lib2302(char *URL)
+static CURLcode test_lib2302(const char *URL)
 {
 #ifndef CURL_DISABLE_WEBSOCKETS
   CURL *curl;
index 750325045c55521e402f30b9adc523a982c39cb0..8950f1f25ed8aa0552f7dd1976276decff7d18d5 100644 (file)
@@ -110,7 +110,7 @@ static void t2304_websocket(CURL *curl)
 }
 #endif
 
-static CURLcode test_lib2304(char *URL)
+static CURLcode test_lib2304(const char *URL)
 {
 #ifndef CURL_DISABLE_WEBSOCKETS
   CURL *curl;
index 5d37d74dd3a0f55b5079cfa3492121c94e8b8ab1..d2832e1cb21bfde5cfe94d6bd6fa1b50a0e5a4ed 100644 (file)
@@ -23,7 +23,7 @@
  ***************************************************************************/
 #include "first.h"
 
-static CURLcode test_lib2306(char *URL)
+static CURLcode test_lib2306(const char *URL)
 {
   /* first a fine GET response, then a bad one */
   CURL *cl;
index a66dcb70ca2b533c1adcd07392db70836ccb0a2c..1f7e6a4a2f4207a7a93853e1a7e51bde04759ad5 100644 (file)
@@ -32,7 +32,7 @@ static size_t cb_curl(char *buffer, size_t size, size_t nmemb, void *userp)
   return CURL_WRITEFUNC_ERROR;
 }
 
-static CURLcode test_lib2308(char *URL)
+static CURLcode test_lib2308(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index d5df7cae07bc23f0f8c44b74065e49862914904f..afc92803d01ab48b9de67fce371c069685ad1a4d 100644 (file)
@@ -32,7 +32,7 @@ static size_t cb_ignore(char *buffer, size_t size, size_t nmemb, void *userp)
   return CURL_WRITEFUNC_ERROR;
 }
 
-static CURLcode test_lib2309(char *URL)
+static CURLcode test_lib2309(const char *URL)
 {
   CURL *curl;
   CURL *curldupe;
index db932aac8230905da653669c20668031b02f5344..fcc6078a2edddf9b64c463690bb630cad324c9e2 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib2402(char *URL)
+static CURLcode test_lib2402(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl[NUM_HANDLES] = {0};
@@ -35,8 +35,8 @@ static CURLcode test_lib2402(char *URL)
   char target_url[256];
   char dnsentry[256];
   struct curl_slist *slist = NULL;
-  char *port = libtest_arg3;
-  char *address = libtest_arg2;
+  const char *port = libtest_arg3;
+  const char *address = libtest_arg2;
 
   (void)URL;
 
index d4fec33b9bd90b69a0ad57a989660c53d4927840..3a3597010861a100116ab9fa23879d65c198da57 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib2404(char *URL)
+static CURLcode test_lib2404(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl[NUM_HANDLES] = {0};
@@ -35,8 +35,8 @@ static CURLcode test_lib2404(char *URL)
   char target_url[256];
   char dnsentry[256];
   struct curl_slist *slist = NULL;
-  char *port = libtest_arg3;
-  char *address = libtest_arg2;
+  const char *port = libtest_arg3;
+  const char *address = libtest_arg2;
 
   (void)URL;
 
index f1db830872856ea1dbe757e3ad4d53868e63d892..2d22276194c1051684d3598fa275296d7c581188 100644 (file)
@@ -74,7 +74,7 @@ static size_t emptyWriteFunc(void *ptr, size_t size, size_t nmemb,
   return size * nmemb;
 }
 
-static CURLcode set_easy(char *URL, CURL *easy, long option)
+static CURLcode set_easy(const char *URL, CURL *easy, long option)
 {
   CURLcode res = CURLE_OK;
 
@@ -116,7 +116,8 @@ test_cleanup:
   return res;
 }
 
-static CURLcode test_run(char *URL, long option, unsigned int *max_fd_count)
+static CURLcode test_run(const char *URL, long option,
+                         unsigned int *max_fd_count)
 {
   CURLMcode mc = CURLM_OK;
   CURLM *multi = NULL;
@@ -367,7 +368,7 @@ test_cleanup:
   return res;
 }
 
-static CURLcode test_lib2405(char *URL)
+static CURLcode test_lib2405(const char *URL)
 {
   CURLcode res = CURLE_OK;
   unsigned int fd_count = 0;
index af31ce39361dd4b74eaa21d794602f97ab57ca05..ac8dbb11b5e39ba840fb471374ff198ea9aa4da1 100644 (file)
@@ -26,7 +26,7 @@
 #include "testtrace.h"
 #include "memdebug.h"
 
-static CURLcode test_lib2502(char *URL)
+static CURLcode test_lib2502(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl[NUM_HANDLES] = {0};
@@ -36,8 +36,8 @@ static CURLcode test_lib2502(char *URL)
   char target_url[256];
   char dnsentry[256];
   struct curl_slist *slist = NULL;
-  char *port = libtest_arg3;
-  char *address = libtest_arg2;
+  const char *port = libtest_arg3;
+  const char *address = libtest_arg2;
 
   (void)URL;
 
index d2eff5577b48c6770f8291221321782b01c82656..b7c2d901c2b6bb2a28e0af7ce12ecca38c07b4ef 100644 (file)
@@ -209,7 +209,7 @@ static CURLcode recv_frame(CURL *curl, bool *stop)
 }
 #endif
 
-static CURLcode test_lib2700(char *URL)
+static CURLcode test_lib2700(const char *URL)
 {
 #ifndef CURL_DISABLE_WEBSOCKETS
   CURLcode res = CURLE_OK;
index 05979ad1241fa97a45443f47edb55dd5e876dbce..58271772ab4bbde60c8f8a0affbc7420720c2d0a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3010(char *URL)
+static CURLcode test_lib3010(const char *URL)
 {
   CURLcode ret = CURLE_OK;
   CURL *curl = NULL;
index 37d2d6807936264bef76c37fccbe3b5ff6c766b0..b0056193b7723899468aaaf281f7a89c355fa29d 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3025(char *URL)
+static CURLcode test_lib3025(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 0aefd9b724c5235f64c32f5036d37cc7c2055f71..13254098d23257db22fe88010ae03f5ef1573290 100644 (file)
@@ -42,7 +42,7 @@ static unsigned int WINAPI t3026_run_thread(void *ptr)
   return 0;
 }
 
-static CURLcode test_lib3026(char *URL)
+static CURLcode test_lib3026(const char *URL)
 {
 #if defined(CURL_WINDOWS_UWP) || defined(UNDER_CE)
   typedef HANDLE curl_win_thread_handle_t;
@@ -111,7 +111,7 @@ static void *t3026_run_thread(void *ptr)
   return NULL;
 }
 
-static CURLcode test_lib3026(char *URL)
+static CURLcode test_lib3026(const char *URL)
 {
   CURLcode results[NUM_THREADS];
   pthread_t tids[NUM_THREADS];
@@ -156,7 +156,7 @@ cleanup:
 }
 
 #else /* without pthread or Windows, this test doesn't work */
-static CURLcode test_lib3026(char *URL)
+static CURLcode test_lib3026(const char *URL)
 {
   curl_version_info_data *ver;
   (void)URL;
index 7461e3f22a141855c812df008043fc28ec9fd9a8..735f4c96e964d1937936fbb41950179023066748 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3027(char *URL)
+static CURLcode test_lib3027(const char *URL)
 {
   CURLcode ret = CURLE_OK;
   CURL *hnd;
index f0a64198c8ebd4af29458d11480e496ade117ff8..e4befc2f533125f07bc5a1da55c0afc8d734b0db 100644 (file)
  * SPDX-License-Identifier: curl
  *
  ***************************************************************************/
+#include "first.h"
+
 #include "testtrace.h"
-#include "testutil.h"
-#include "memdebug.h"
 
+#include "memdebug.h"
 
 static CURLcode t3033_req_test(CURLM *multi, CURL *easy,
-                               char *url_3033, int index)
+                               const char *URL, int index)
 {
   CURLMsg *msg = NULL;
   CURLcode res = CURLE_OK;
@@ -43,7 +44,7 @@ static CURLcode t3033_req_test(CURLM *multi, CURL *easy,
   }
 
   curl_easy_reset(easy);
-  curl_easy_setopt(easy, CURLOPT_URL, url_3033);
+  curl_easy_setopt(easy, CURLOPT_URL, URL);
   easy_setopt(easy, CURLOPT_DEBUGDATA, &libtest_debug_config);
   easy_setopt(easy, CURLOPT_DEBUGFUNCTION, libtest_debug_cb);
   easy_setopt(easy, CURLOPT_VERBOSE, 1L);
@@ -96,7 +97,7 @@ test_cleanup:
   return res;
 }
 
-static CURLcode test_lib3033(char *URL)
+static CURLcode test_lib3033(const char *URL)
 {
   CURL *curl = NULL;
   CURLM *multi = NULL;
index 7942b9972c15e6e309fc35983af2b0f9fdfe7805..b661aa76ceb1935d70b46551d3c47011e3a0d4cd 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3100(char *URL)
+static CURLcode test_lib3100(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index b6e5b3ca09d8df70ec72a46f18a5aa074dbc1714..3f5cbce17cbfc6950a3d3c4fd2b3d2cd0515e897 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3101(char *URL)
+static CURLcode test_lib3101(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 6f5b813c5ea827bdcd4f53f00ef198bbfb525c75..136ec0a1b73f202a99f86a0a6b64466c4f06d83e 100644 (file)
@@ -89,7 +89,7 @@ static size_t wrfu(void *ptr,  size_t  size,  size_t  nmemb,  void *stream)
   return size * nmemb;
 }
 
-static CURLcode test_lib3102(char *URL)
+static CURLcode test_lib3102(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index be607125d2e1782c22008e1fab1f314249b98493..5b25e1cd4175c0f68973400d1e70337b6ec579c8 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3103(char *URL)
+static CURLcode test_lib3103(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURLSH *share;
index 20c2c154ef2a51299b0ef02e6b66bc9b3fb2cabd..dd1500ede55c5e2fd2592fa2bd4bb670b8660a33 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3104(char *URL)
+static CURLcode test_lib3104(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURLSH *share;
index 962997a53e0a8b58dfeb2670f5ff29a6494ded69..5c231c2f82ef9c8011eda17a949fc10f15120294 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3105(char *URL)
+static CURLcode test_lib3105(const char *URL)
 {
   CURL *curls = NULL;
   CURLM *multi = NULL;
index 0f7c3d762ad937ea19c984c6a5410f52fc66990d..4eca3dd02442e26637efbc02c468c40d7112326a 100644 (file)
@@ -169,7 +169,7 @@ static void execute(CURLSH *share, struct Ctx *ctx)
 
 #endif
 
-static CURLcode test_lib3207(char *URL)
+static CURLcode test_lib3207(const char *URL)
 {
   CURLcode res = CURLE_OK;
   size_t i;
index 6dbf9bcadff0950d7ddeb396c4522bde634b88e9..39585c159775b17734fabbf25c4e0df4c72cd5b5 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib3208(char *URL)
+static CURLcode test_lib3208(const char *URL)
 {
   CURL *curl = NULL;
   CURLM *multi = NULL;
index 84cd79346b7eb968f624a3857f6bc2bdd31430ca..2a2365fd9f0b0d998a675bec4c356bc1cd971566 100644 (file)
@@ -52,7 +52,7 @@ static void setupcallbacks(CURL *curl)
   testcounter = 0;
 }
 
-static CURLcode test_lib500(char *URL)
+static CURLcode test_lib500(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index e770a72d4ed5a6ee74a493117fcb1d459aa0ce1b..d32e4397b8fd0aa39bf3b33ba515d20a18cecfde 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib501(char *URL)
+static CURLcode test_lib501(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index a18e6976b9093ba8c69968397ffc742c2fcf2f30..9a51267aae039d833c6f47ac08bcb9b95624c703 100644 (file)
@@ -29,7 +29,7 @@
  * Get a single URL without select().
  */
 
-static CURLcode test_lib502(char *URL)
+static CURLcode test_lib502(const char *URL)
 {
   CURL *c = NULL;
   CURLM *m = NULL;
index 0598b1bcffc16fd6b212e4aa5542f1eb41f72503..f7529d47b79f0aa1ffca1141dfc209c075025fec 100644 (file)
@@ -33,7 +33,7 @@
  * auth info.
  */
 
-static CURLcode test_lib503(char *URL)
+static CURLcode test_lib503(const char *URL)
 {
   CURL *c = NULL;
   CURLM *m = NULL;
index a795571cc17950451a9d1744d26a454aa1eec1fe..07b46345bbf8e3396d69baf50aa404adb8c96179 100644 (file)
@@ -32,7 +32,7 @@
  * Use multi interface to get document over proxy with bad port number.
  * This caused the interface to "hang" in libcurl 7.10.2.
  */
-static CURLcode test_lib504(char *URL)
+static CURLcode test_lib504(const char *URL)
 {
   CURL *c = NULL;
   CURLcode res = CURLE_OK;
index 4f4c5c9f395705654988550f306b904ab3a9a81f..2285208e9f37b0b4aea720fe96839b3ccff0c028 100644 (file)
@@ -32,7 +32,7 @@
  * Example based on source code provided by Erick Nuwendam. Thanks!
  */
 
-static CURLcode test_lib505(char *URL)
+static CURLcode test_lib505(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 384bf26db6d7453e76e2c94f8d8dc19625204d26..ba82c9a42ddcbbd3f507ace608fad910687e392b 100644 (file)
@@ -163,7 +163,7 @@ static void *t506_test_fire(void *ptr)
 }
 
 /* test function */
-static CURLcode test_lib506(char *URL)
+static CURLcode test_lib506(const char *URL)
 {
   CURLcode res;
   CURLSHcode scode = CURLSHE_OK;
index e6eacfd2ec858bffafdda3ef92276b037b3f269b..de23b02f0a3b0ce2dd457681205e4db76c5cdf80 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib507(char *URL)
+static CURLcode test_lib507(const char *URL)
 {
   CURL *curls = NULL;
   CURLM *multi = NULL;
index 0cb749103feca301601be855efcb95609c3ee90e..a4c25b7918f681a725b28df425ab6a78efcdcf7c 100644 (file)
@@ -47,7 +47,7 @@ static size_t t508_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode test_lib508(char *URL)
+static CURLcode test_lib508(const char *URL)
 {
   static const char testdata[] =
     "this is what we post to the silly web server\n";
index d0cba1281df9cd4b69178747c3962d8962fb3bdc..a8be3eae52214eb01d7aae4d0b55545299e666f2 100644 (file)
@@ -67,7 +67,7 @@ static void custom_free(void *ptr)
 }
 
 
-static CURLcode test_lib509(char *URL)
+static CURLcode test_lib509(const char *URL)
 {
   static const unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
                                     0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
index c5d4a5582ed2a849c70f745c8a6312fcb63dba82..da270c1c9213752941b9e5ca4d2731915bf379e1 100644 (file)
@@ -60,7 +60,7 @@ static size_t t510_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode test_lib510(char *URL)
+static CURLcode test_lib510(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 30b31469f720ef9dca4cd8f59ba163f7382f558f..1db409378098382d8bfa70a9580122b1f18ca893 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib511(char *URL)
+static CURLcode test_lib511(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 458227eeb47c7c0003e8eb6d9729b2cc295a7a8e..59a1cd7595d52b80460390c755cb0e2724d7b910 100644 (file)
@@ -28,7 +28,7 @@
 /* Test case code based on source in a bug report filed by James Bursa on
    28 Apr 2004 */
 
-static CURLcode test_lib512(char *URL)
+static CURLcode test_lib512(const char *URL)
 {
   CURLcode code;
   int rc = 99;
index 51749b9fda08a04c585477e8058f4385988e9534..3d0afb1191b91c82986da67e7d7a4cc2aa22ae09 100644 (file)
@@ -34,7 +34,7 @@ static size_t t513_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return CURL_READFUNC_ABORT;
 }
 
-static CURLcode test_lib513(char *URL)
+static CURLcode test_lib513(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 8580d4499912f3c8b98b5954a1249d049579b6d5..f47cdb321d5823543fc98a119f92b741523abfc5 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib514(char *URL)
+static CURLcode test_lib514(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 511f0775407c074921882ae25bcd272ad4745c86..d9814525df553fb312ec2c9fcd574dc4cc22eb39 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib515(char *URL)
+static CURLcode test_lib515(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 8582110c3ef3ff499a98ee1d0c00986f628fe9bb..b7778a6a76c8ce48297988551b3dc548d67fc469 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib516(char *URL)
+static CURLcode test_lib516(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 5324d6378f404b11eb43e1811c50342d25aca1b2..cf1a14d31c612f318d60e9bf877feff35a43de3a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib517(char *URL)
+static CURLcode test_lib517(const char *URL)
 {
   struct dcheck {
     const char *input;
index e99bb9c388685d03fdfdb6ed96370f0a18945014..86eddec003e98747b3d76d19995bd7764e9702f4 100644 (file)
@@ -421,7 +421,7 @@ static int t518_test_rlimit(int keep_open)
   return 0;
 }
 
-static CURLcode test_lib518(char *URL)
+static CURLcode test_lib518(const char *URL)
 {
   CURLcode res;
   CURL *curl;
@@ -473,7 +473,7 @@ test_cleanup:
 
 #else /* HAVE_GETRLIMIT && HAVE_SETRLIMIT */
 
-static CURLcode test_lib518(char *URL)
+static CURLcode test_lib518(const char *URL)
 {
   (void)URL;
   curl_mprintf("system lacks necessary system function(s)");
index 7848681bc47396796fa2f105a2f191e63928db39..615e8aac8a521bd4d4a111c6d4b672bafcac5af7 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib519(char *URL)
+static CURLcode test_lib519(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 6b8f4edd069944d14e7634f55c9fa30f1497fa03..34f7c541e222769f96ab265a95e7b4c1f27aef9c 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib520(char *URL)
+static CURLcode test_lib520(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 9230984344fce5dd219ab50f71183a639f8b4bdc..32bf7b3022a2aacbda35571957535cc1254beed4 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib521(char *URL)
+static CURLcode test_lib521(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 4b8a52660b667b9c1250abc386fc3a288930f719..3b56ada894e8334c5ce6cb5c3fdf1c7a165a857a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib523(char *URL)
+static CURLcode test_lib523(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 884afb7b77aca1cc0c59d70c89fa8558e1e356dc..e015e58637eb8cb6102a9e71e8628d283c5368e1 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib524(char *URL)
+static CURLcode test_lib524(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 0c60710870210a4bfb72fe2171cbd2b5ad055898..6c7d6503667a5ecdaa33b467d3fd11d4c3c72609 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib525(char *URL)
+static CURLcode test_lib525(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl = NULL;
index de097e1b04739ac59c910efc3822a1d6804a55fd..8cf0687441066cb24251d972d68f4deccff5c708 100644 (file)
@@ -44,7 +44,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib526(char *URL)
+static CURLcode test_lib526(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl[NUM_HANDLES];
index 3a15bfb0a2cb8494e8a92b67e966d7e3ab867995..4ac5b1607249789faf51526e6671cf83cb625bd3 100644 (file)
@@ -279,7 +279,7 @@ static int t530_checkFdSet(CURLM *curl, struct t530_Sockets *sockets,
   return result;
 }
 
-static CURLcode testone(char *URL, int timer_fail_at, int socket_fail_at)
+static CURLcode testone(const char *URL, int timer_fail_at, int socket_fail_at)
 {
   CURLcode res = CURLE_OK;
   CURL *curl = NULL;  CURLM *m = NULL;
@@ -393,7 +393,7 @@ test_cleanup:
   return res;
 }
 
-static CURLcode test_lib530(char *URL)
+static CURLcode test_lib530(const char *URL)
 {
   CURLcode rc;
   /* rerun the same transfer multiple times and make it fail in different
index 064ff9d7a3457f707d31e74ad8ad017f3feda419..adba324f669fa84fcf460ff90c333878b02bf3ce 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib533(char *URL)
+static CURLcode test_lib533(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl = NULL;
index 6e5a83cab978992f8af3ebd8d9562347df6f230d..6c8b8ee1d858b4f5c9168788249146411784f38b 100644 (file)
@@ -37,7 +37,7 @@ static void proxystat(CURL *curl)
   }
 }
 
-static CURLcode test_lib536(char *URL)
+static CURLcode test_lib536(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl;
index ddd8b1253ec7b451f8d3443a8a7dfe03abca5b2a..fa03c3b9833d424de7308da926120b30a6e0cef5 100644 (file)
@@ -435,7 +435,7 @@ static int t537_test_rlimit(int keep_open)
   return 0;
 }
 
-static CURLcode test_lib537(char *URL)
+static CURLcode test_lib537(const char *URL)
 {
   CURLcode res;
   CURL *curl;
@@ -487,7 +487,7 @@ test_cleanup:
 
 #else /* HAVE_GETRLIMIT && HAVE_SETRLIMIT */
 
-static CURLcode test_lib537(char *URL)
+static CURLcode test_lib537(const char *URL)
 {
   (void)URL;
   curl_mprintf("system lacks necessary system function(s)");
index 4b333807e3e4eec867b8ee5016a6b09fc61b6c2b..e4e26c204a130cb1037c7b12b4160ceb78329620 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib539(char *URL)
+static CURLcode test_lib539(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index b4c8a00eebcff3cbd20edb33fa239aabf85162b0..22611189e2a6a2d5ed5178612a69faa1ea09ab34 100644 (file)
@@ -184,7 +184,7 @@ static CURLcode loop(int num, CURLM *cm, const char *url, const char *userpwd,
   return CURLE_OK;
 }
 
-static CURLcode test_lib540(char *URL)
+static CURLcode test_lib540(const char *URL)
 {
   CURLM *cm = NULL;
   struct curl_slist *headers = NULL;
index 9ae605a1834c66726021cc0b4f5e2ac7fa333f74..9868474d01b3fe328a0179c07628c073970d2658 100644 (file)
@@ -29,7 +29,7 @@
  * Two FTP uploads, the second with no content sent.
  */
 
-static CURLcode test_lib541(char *URL)
+static CURLcode test_lib541(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index cb065d722ac911fd91fc20c15fd45188b2d6bfcb..e6e73131fd62ae0069c299a520c67536b26f164f 100644 (file)
@@ -29,7 +29,7 @@
  * FTP get with NOBODY but no HEADER
  */
 
-static CURLcode test_lib542(char *URL)
+static CURLcode test_lib542(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index d759e5eb038e82f5234dc0432ce80c4b027a9858..d3653dbccd2ffc1e360df026397bee20f765a001 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib543(char *URL)
+static CURLcode test_lib543(const char *URL)
 {
   static const unsigned char a[] = {
       0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1,
index 0a70b72e7ec18dd629c1b078d0087f6fa5abf2e9..f5dcb5383c9f5d1b78c03c76f6dc364a93a85fc7 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib544(char *URL)
+static CURLcode test_lib544(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 9099b458c9c88ca437ce2d21802cd0707cc51a7d..8892dab028b6ac2ac63690d2e671ba4f867e4737 100644 (file)
@@ -63,7 +63,7 @@ static curlioerr t547_ioctl_callback(CURL *handle, int cmd, void *clientp)
   return CURLIOE_OK;
 }
 
-static CURLcode test_lib547(char *URL)
+static CURLcode test_lib547(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 555cd7d62069ea23210cab501dfa611859eb548f..4eaacf5868a4559e52369101dce2712c5d330901 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib549(char *URL)
+static CURLcode test_lib549(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 9a97d110afb87703772ef4ff0adea2111c90c7fa..50308b963ba9530457c3a61fda721226be2628db 100644 (file)
@@ -157,7 +157,7 @@ static curlioerr ioctl_callback(CURL *handle, int cmd, void *clientp)
   return CURLIOE_UNKNOWNCMD;
 }
 
-static CURLcode test_lib552(char *URL)
+static CURLcode test_lib552(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index e1933821bd3078d1a6b4c90009deff8747be0bea..0d44573131ec9955d54945f81d023eb2023f5df4 100644 (file)
@@ -55,7 +55,7 @@ static size_t myreadfunc(char *ptr, size_t size, size_t nmemb, void *stream)
 #define NUM_HEADERS 8
 #define SIZE_HEADERS 5000
 
-static CURLcode test_lib553(char *URL)
+static CURLcode test_lib553(const char *URL)
 {
   static char testbuf[SIZE_HEADERS + 100];
 
index 49d95a1259c50e6831b50b9a3638741a6ab3d656..f705fbbd3ead0f4443b2ac42b82ad26ac67a5f20 100644 (file)
@@ -56,7 +56,7 @@ static size_t t587_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return CURL_READFUNC_ABORT;
 }
 
-static CURLcode t554_test_once(char *URL, bool oldstyle)
+static CURLcode t554_test_once(const char *URL, bool oldstyle)
 {
   static const char testdata[] =
     "this is what we post to the silly web server\n";
@@ -192,7 +192,7 @@ test_cleanup:
   return res;
 }
 
-static CURLcode test_lib554(char *URL)
+static CURLcode test_lib554(const char *URL)
 {
   CURLcode res;
 
index a71df177141f81402ddcffcdd85ed5c24037ad66..97a5d874b3d9ecaeb96ec2dd2400927ad1f2cd93 100644 (file)
@@ -67,7 +67,7 @@ static curlioerr t555_ioctl_callback(CURL *handle, int cmd, void *clientp)
   return CURLIOE_OK;
 }
 
-static CURLcode test_lib555(char *URL)
+static CURLcode test_lib555(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl = NULL;
index a7104c8a6c4fbd7672210e027f83c46b8b6a115b..7b155a252836997447a4720f5060065aad2b38d2 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib556(char *URL)
+static CURLcode test_lib556(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 097f4845c05981b0702b012b5c429b359e45ed23..8c12e960f76db4a03313826eefae9eb8a58a099b 100644 (file)
@@ -1539,7 +1539,7 @@ static int test_return_codes(void)
   return 0;
 }
 
-static CURLcode test_lib557(char *URL)
+static CURLcode test_lib557(const char *URL)
 {
   int errors = 0;
   (void)URL; /* not used */
index 07f75dcd9d3842ba724b3422dbcd75b22a38f489..795a0b74b3735c9b0cb6c5ee52221e374c89bc6f 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib558(char *URL)
+static CURLcode test_lib558(const char *URL)
 {
   unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
                        0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
index 987dc708adaa20c0248133c7fa71e4640ccbcbf1..36a55751265280635816e2ebb3721ff9af02531f 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib559(char *URL)
+static CURLcode test_lib559(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index f6a398e17f7c27ee44965c206ac10fc7d620a39a..060e27eea0593af56292e84f8d8feb1651d8a54f 100644 (file)
@@ -35,7 +35,7 @@
  * fast/different compared to the real/distant servers we saw the bug happen
  * with.
  */
-static CURLcode test_lib560(char *URL)
+static CURLcode test_lib560(const char *URL)
 {
   CURL *http_handle = NULL;
   CURLM *multi_handle = NULL;
index c6a391cf6564a334099c937a1c553cc492e7bb0b..016dffe1bda1aaf0d3cbf852955bbbee3dba033b 100644 (file)
@@ -33,7 +33,7 @@
 
  */
 
-static CURLcode test_lib562(char *URL)
+static CURLcode test_lib562(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 2cf3102ad30be16b7348dad2f343696388e2207a..86e4f9ed06c3c1ecd4c6995b922ddd8efcee9b5a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib564(char *URL)
+static CURLcode test_lib564(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl = NULL;
index fc9d929f3d4339b72a38c7458d9bba8a81b0bb65..15221cd0ccd8e1f69b6397ed83a2fed52f8e7239 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib566(char *URL)
+static CURLcode test_lib566(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 675293546967259ce5f7e2253f1028d92b8b3598..a11a6c31f010a5b8e19b070ad627eb3dd1197255 100644 (file)
@@ -28,7 +28,7 @@
 /*
  * Test a simple OPTIONS request with a custom header
  */
-static CURLcode test_lib567(char *URL)
+static CURLcode test_lib567(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index b0e8b610d2e60c4fc6d3fd20220bc34f9b34245e..8e34194ef5edcb61722d47de0b967549e22d3c92 100644 (file)
@@ -29,7 +29,7 @@
 /*
  * Test the Client->Server ANNOUNCE functionality (PUT style)
  */
-static CURLcode test_lib568(char *URL)
+static CURLcode test_lib568(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 57cb4602683991ab6b232c55b6f6ed6f823a3699..3a2d03107290a93a90dd78948ad6717ae5379e8c 100644 (file)
@@ -29,7 +29,7 @@
 /*
  * Test Session ID capture
  */
-static CURLcode test_lib569(char *URL)
+static CURLcode test_lib569(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 76eddfb032cc61f397e8eef9c73142b9e1b13c37..18a4d47efb865f2edb5763941430462509f8d393 100644 (file)
@@ -26,7 +26,7 @@
 #include "testutil.h"
 #include "memdebug.h"
 
-static CURLcode test_lib570(char *URL)
+static CURLcode test_lib570(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 4a8d805bf0f4ec3d403d557321f8997986bb6a10..0350fb36cd362d6f264f10024a987260b38dc13a 100644 (file)
@@ -90,7 +90,7 @@ static size_t rtp_write(char *ptr, size_t size, size_t nmemb, void *stream)
   return size * nmemb;
 }
 
-static CURLcode test_lib571(char *URL)
+static CURLcode test_lib571(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index cf5fa7c9147fe0d90026306391161dddc284e9e6..ea9e34e06853f883ca8dc903acc8b6506931284c 100644 (file)
@@ -29,7 +29,7 @@
 /*
  * Test GET_PARAMETER: PUT, HEARTBEAT, and POST
  */
-static CURLcode test_lib572(char *URL)
+static CURLcode test_lib572(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 2cfecc09cca8d0b7cfd7fcfcc1063abd0b84fa45..735f1781c1a1453799a3095c430c9eb44c1ba068 100644 (file)
@@ -30,7 +30,7 @@
  * Get a single URL without select().
  */
 
-static CURLcode test_lib573(char *URL)
+static CURLcode test_lib573(const char *URL)
 {
   CURL *c = NULL;
   CURLM *m = NULL;
index de12349a28f23e4ecf54532ef19b4d4dd619ed4e..23ec30e322abb9f04302191297eadabc617ab999 100644 (file)
@@ -34,7 +34,7 @@ static int new_fnmatch(void *ptr,
   return CURL_FNMATCHFUNC_MATCH;
 }
 
-static CURLcode test_lib574(char *URL)
+static CURLcode test_lib574(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index e474721778d22f66a60ee7fbba89d1bd5f92f1ed..a0ac02f85212a0ad48c0f2515eb7751f9a083439 100644 (file)
@@ -31,7 +31,7 @@
  * 3. with multi interface
  */
 
-static CURLcode test_lib575(char *URL)
+static CURLcode test_lib575(const char *URL)
 {
   CURL *handle = NULL;
   CURL *duphandle = NULL;
index 5c58c0a5600b9f89364e5645dc4771d97572ece4..d0fedd817d55157cbdf2e44d38b098fa1f6854d5 100644 (file)
@@ -96,7 +96,7 @@ static long chunk_end(void *ptr)
   return CURL_CHUNK_END_FUNC_OK;
 }
 
-static CURLcode test_lib576(char *URL)
+static CURLcode test_lib576(const char *URL)
 {
   CURL *handle = NULL;
   CURLcode res = CURLE_OK;
index 22a2cf17bb3cadf95c0f7eeda40f0077fcc8d754..5b46c8e622bec1b49cb0ce94030a45086a9d6741 100644 (file)
@@ -50,7 +50,7 @@ static int t578_progress_callback(void *clientp, double dltotal, double dlnow,
   return 0;
 }
 
-static CURLcode test_lib578(char *URL)
+static CURLcode test_lib578(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 8ec94c3f6627bfc8f2a3aa5b4be491beccbc30ce..4f6b67e54007691f4a6661cda2d4d4b02fcee948 100644 (file)
@@ -100,7 +100,7 @@ static size_t t579_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode test_lib579(char *URL)
+static CURLcode test_lib579(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 7ba53aca3dcafbed82c9ad0613beee25a635ff07..f511c0c3a212b2fc8cf1a72f3e6452a67ed6c0e4 100644 (file)
@@ -221,7 +221,7 @@ static void t582_checkFdSet(CURLM *curl, struct t582_Sockets *sockets,
   }
 }
 
-static CURLcode test_lib582(char *URL)
+static CURLcode test_lib582(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURL *curl = NULL;
index 07e0e4ac451ba477ffacb92806f661753f276611..10cb77689e3b1f35cf1466201562e77da151d4b0 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib583(char *URL)
+static CURLcode test_lib583(const char *URL)
 {
   int stillRunning;
   CURLM *multiHandle = NULL;
index feb7ecdd1200a2122db3a5f5904c4c3cf307faa3..ccde713ce33f32ecd85741d1a13270791e0ab563 100644 (file)
@@ -30,7 +30,7 @@
 /* struct containing data of a thread */
 struct t586_Tdata {
   CURLSH *share;
-  char *url;
+  const char *url;
 };
 
 struct t586_userdata {
@@ -130,11 +130,10 @@ static void *t586_test_fire(void *ptr)
 }
 
 /* test function */
-static CURLcode test_lib586(char *URL)
+static CURLcode test_lib586(const char *URL)
 {
   CURLcode res = CURLE_OK;
   CURLSHcode scode = CURLSHE_OK;
-  char *url;
   struct t586_Tdata tdata;
   CURL *curl;
   CURLSH *share;
@@ -208,8 +207,7 @@ static CURLcode test_lib586(char *URL)
     return TEST_ERR_MAJOR_BAD;
   }
 
-  url = URL;
-  test_setopt(curl, CURLOPT_URL, url);
+  test_setopt(curl, CURLOPT_URL, URL);
   curl_mprintf("CURLOPT_SHARE\n");
   test_setopt(curl, CURLOPT_SHARE, share);
 
index 760b2dcde893e39f29814d3bace3dc71de0a266d..9b912ab037d828d47bfb2da6ef069a103ed1f57b 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib589(char *URL)
+static CURLcode test_lib589(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index d11f7fc09c5aed82d9024090e7b52502cfaa8ced..c804f995dee9097c7c6c79618a33f11ab537c353 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib590(char *URL)
+static CURLcode test_lib590(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 82568babc33a494e4f23c4b41720f0fb0ffff55b..1f09fbdc4d12285252ccb1b3f76fb6a833f0828e 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib591(char *URL)
+static CURLcode test_lib591(const char *URL)
 {
   CURL *easy = NULL;
   CURLM *multi = NULL;
index 0bbc9671d1ffc09e13da87bacaa06fb524abf677..126ce74f385381382a5602abddb0566a4753cc68 100644 (file)
@@ -34,7 +34,7 @@
  * with function curl_multi_info_read().
  */
 
-static CURLcode test_lib597(char *URL)
+static CURLcode test_lib597(const char *URL)
 {
   CURL *easy = NULL;
   CURLM *multi = NULL;
index fdcb9fe3a6813891666b38ecefd93d754f29a403..56330c4a244807810f033d5fd65bf20cbb4a35b4 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib598(char *URL)
+static CURLcode test_lib598(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 116ae648f916dcaa089c8de7a2cdb5ee85c5453b..5b52698a29f74a415e5f9328030da28b87398d4b 100644 (file)
@@ -41,7 +41,7 @@ static int t599_progress_callback(void *clientp, double dltotal,
   return 0;
 }
 
-static CURLcode test_lib599(char *URL)
+static CURLcode test_lib599(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 95c562387dca88ff35b1ab2697400bc3227e7bd8..34c6ee947cf57cbb201fa6392f3cb4dafed21151 100644 (file)
@@ -56,7 +56,7 @@ static size_t t643_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode t643_test_once(char *URL, bool oldstyle)
+static CURLcode t643_test_once(const char *URL, bool oldstyle)
 {
   static const char testdata[] = "dummy\n";
 
@@ -247,7 +247,7 @@ static CURLcode t643_cyclic_add(void)
   return CURLE_OK;
 }
 
-static CURLcode test_lib643(char *URL)
+static CURLcode test_lib643(const char *URL)
 {
   CURLcode res;
 
index f6a4b692abbe52b6f2f04f4f2378a7d64df23c13..42fa5b822c06e07f50de59cf15880cefa27971ea 100644 (file)
@@ -39,7 +39,7 @@ static size_t count_chars(void *userp, const char *buf, size_t len)
   return len;
 }
 
-static CURLcode test_lib650(char *URL)
+static CURLcode test_lib650(const char *URL)
 {
   CURL *curl = NULL;
   CURLcode res = TEST_ERR_MAJOR_BAD;
index cb029abe4c1aac8460150ef5179fcfe7b7c52bb3..904eafc6268324d32d9d533ece512610f6b94863 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib651(char *URL)
+static CURLcode test_lib651(const char *URL)
 {
   static char testbuf[17000]; /* more than 16K */
 
index e5c6a2bebb6281c5b4cb03c26bea9b0937a16257..dcbc5a3ab3f8a4a2fa45af2f675dae973d8a9c56 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib652(char *URL)
+static CURLcode test_lib652(const char *URL)
 {
   static char testbuf[17000]; /* more than 16K */
 
index e1cdb2b335828787b8b18581cd315802093c5bed..4f20865e269d91843c5422023ea30c934958305a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib653(char *URL)
+static CURLcode test_lib653(const char *URL)
 {
   CURL *curls = NULL;
   CURLcode res = CURLE_OK;
index e3b9d2f6f2de1adffbcb630e9b2557b4a0d84577..a808e24a0acde7d1cb476ec2824bd193b4d235f7 100644 (file)
@@ -59,7 +59,7 @@ static size_t t654_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode test_lib654(char *URL)
+static CURLcode test_lib654(const char *URL)
 {
   static const char testdata[] = "dummy\n";
 
index 34d5f8a3bff2175160846407176e1a461fee58c4..d1bf80473dd13c0dec20a8e194f5e4c806c609ef 100644 (file)
@@ -58,7 +58,7 @@ static int resolver_alloc_cb_pass(void *resolver_state, void *reserved,
   return 0;
 }
 
-static CURLcode test_lib655(char *URL)
+static CURLcode test_lib655(const char *URL)
 {
   CURL *curl;
   CURLcode res = CURLE_OK;
index 410ab070e9caeefc58c8cdba2f1bb31902bb1166..00a2a35906b9dc42653fa54aa3f84e0aeda6258c 100644 (file)
@@ -29,7 +29,7 @@
  * Get a single URL without select().
  */
 
-static CURLcode test_lib658(char *URL)
+static CURLcode test_lib658(const char *URL)
 {
   CURL *handle = NULL;
   CURLcode res = CURLE_OK;
index d926c513bb15637f0b9ec03dc0642a3a6168822d..70a630758c147d86e77abda46b4ff32b093b828f 100644 (file)
@@ -29,7 +29,7 @@
  * Get a single URL without select().
  */
 
-static CURLcode test_lib659(char *URL)
+static CURLcode test_lib659(const char *URL)
 {
   CURL *handle = NULL;
   CURLcode res = CURLE_OK;
index 8f14d27b6afd31fc0a78e079b588e957617c34a9..ce1eca1a6f89c51d08c27c580e1d5a6163784a87 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib661(char *URL)
+static CURLcode test_lib661(const char *URL)
 {
    CURLcode res;
    CURL *curl = NULL;
index b4034b7a017e901d588a1e48c9417beecaf4c0fd..cff244dafb1c8087bc33b1e0f912ff967870f372 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib666(char *URL)
+static CURLcode test_lib666(const char *URL)
 {
   static char testbuf[17000]; /* more than 16K */
 
index d9053d2818126faddb6d9d84d74147667ba3840c..a46d1b8cdd7666317f9c0cf83b45ff7280d6df67 100644 (file)
@@ -51,7 +51,7 @@ static size_t t667_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return 0;                         /* no more data left to deliver */
 }
 
-static CURLcode test_lib667(char *URL)
+static CURLcode test_lib667(const char *URL)
 {
   static const char testdata[] = "dummy";
 
index 1eaf5b15f310780e67b52e8e86599f080ba1bf36..219fb8b1508f7e0a533f0898a50f521c771e577d 100644 (file)
@@ -46,7 +46,7 @@ static size_t t668_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return len;
 }
 
-static CURLcode test_lib668(char *URL)
+static CURLcode test_lib668(const char *URL)
 {
   static const char testdata[] = "dummy";
 
index f77458eff23d927bd2f11fa6e7148bd2a008223d..6742b8e4d9f4ee27a3a65206a1a52eed02364165 100644 (file)
@@ -85,7 +85,7 @@ static int t670_xferinfo(void *clientp,
   return 0;
 }
 
-static CURLcode test_lib670(char *URL)
+static CURLcode test_lib670(const char *URL)
 {
   static const char testname[] = "field";
 
index 0da7af317d648bf291c6139ec4651388c9594a8f..a46f2be6eb145129da2663db8062bdefebff7084 100644 (file)
@@ -29,7 +29,7 @@
  * Get a single URL without select().
  */
 
-static CURLcode test_lib674(char *URL)
+static CURLcode test_lib674(const char *URL)
 {
   CURL *handle = NULL;
   CURL *handle2;
index 264127f707c375126ee0e7523477d0a1355fe20f..63437523df8831f8037f3097ae11e0e8196b0066 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib676(char *URL)
+static CURLcode test_lib676(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 1b54eb669a94b1f71be000695e19e68b1acc4e27..8776c30d812c4d0fa5f291bd23e57fb5076e6f6c 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib677(char *URL)
+static CURLcode test_lib677(const char *URL)
 {
   static const char testcmd[] = "A1 IDLE\r\n";
   static char testbuf[1024];
index cad7b9843eea3f910d9ad5a996c3226688452e65..78e03c004f98cd7092a9c5a7db0ec8a24f668b64 100644 (file)
@@ -94,7 +94,7 @@ static CURLcode test_cert_blob(const char *url, const char *cafile)
   return code;
 }
 
-static CURLcode test_lib678(char *URL)
+static CURLcode test_lib678(const char *URL)
 {
   CURLcode res = CURLE_OK;
   curl_global_init(CURL_GLOBAL_DEFAULT);
index e637946c96834f015c6033c4897f58afd1552a6e..eb760fbee2c62cd3c5ab289016d6e32db1689d9a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_lib694(char *URL)
+static CURLcode test_lib694(const char *URL)
 {
   CURLcode res;
   CURL *curl;
index 70b7903055823e4c7fdf96778819de1da1889510..325897c357c9b74eef7fe958f6c8b5022abad474 100644 (file)
@@ -33,7 +33,7 @@ static size_t write_it(char *ptr, size_t size, size_t nmemb, void *userdata)
   return size * nmemb;
 }
 
-static CURLcode test_lib695(char *URL)
+static CURLcode test_lib695(const char *URL)
 {
   CURL *curl = NULL;
   curl_mime *mime1 = NULL;
index bc8ddcfdcb723c7e3147f29a457f193aadffea8d..0e0a1968e68ecf18b07c8e4b6272593c1ba02d1e 100644 (file)
@@ -29,7 +29,7 @@
  * Get a single URL without select().
  */
 
-static CURLcode test_lib751(char *URL)
+static CURLcode test_lib751(const char *URL)
 {
   CURL *easies[1000];
   CURLM *m;
index 36b45e764864ccf4f65013c14b1d08c1e8e3c115..1b86f1aec511dcc106842175550e77fbbc04321f 100644 (file)
@@ -61,7 +61,7 @@ static size_t t753_hd_cb(char *ptr, size_t size, size_t nmemb, void *userp)
   return len;
 }
 
-static bool t753_setup(char *URL, const char *name,
+static bool t753_setup(const char *URL, const char *name,
                        CURL **peasy,
                        struct t753_transfer_status *st)
 {
@@ -96,7 +96,7 @@ test_cleanup:
   return FALSE;
 }
 
-static CURLcode test_lib753(char *URL)
+static CURLcode test_lib753(const char *URL)
 {
   CURL *easy1 = NULL, *easy2 = NULL;
   CURLM *multi = NULL;
index 0dc4fe15e0e4f703d37735a7d78737ec65859cec..3674270fa7f35b5d605b6f1c399993c64aa8e121 100755 (executable)
@@ -326,7 +326,7 @@ static bool bad_long(CURLcode res, int check)
    non-existing function return code back */
 #define present(x) ((x != CURLE_NOT_BUILT_IN) && (x != CURLE_UNKNOWN_OPTION))
 
-static CURLcode test_lib1521(char *URL)
+static CURLcode test_lib1521(const char *URL)
 {
   CURL *curl = NULL;
   CURL *dep = NULL;
index 5abb7ad52564a1726de9ddd5ee6ec2adb432b363..77a2021b0a88a0853982c573f4dfbbd8c2018367 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "memdebug.h" /* LAST include file */
 
-static CURLcode test_tool1394(char *arg)
+static CURLcode test_tool1394(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index e50a074d96639f661d61487aaac8af5e23d50044..db7ed1412408d1dafcbf7af63a9752321548a7e8 100644 (file)
@@ -58,7 +58,7 @@ static char *getcurlcodestr(int cc)
 }
 #endif
 
-static CURLcode test_tool1604(char *arg)
+static CURLcode test_tool1604(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 4919988c6c87403d5ba60ad716ff6ef6ca7113ca..c7dfedddce23a59636b22db4ee51fd80f1c2d743 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "memdebug.h" /* LAST include file */
 
-static CURLcode test_tool1621(char *arg)
+static CURLcode test_tool1621(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 99465a1ea08299e68e6e9783edfef3b4be6fe703..80e2c5c469309aee5dc37ac41b18d49f6d50b7cb 100644 (file)
@@ -49,7 +49,7 @@ For the actual C file, here's a simple example:
 
     #include "a libcurl header.h" /* from the lib dir */
 
-    static CURLcode test_unit9998(char *arg)
+    static CURLcode test_unit9998(const char *arg)
     {
       UNITTEST_BEGIN_SIMPLE
 
@@ -81,7 +81,7 @@ Here's an example using optional initialization and cleanup:
       /* done before shutting down and exiting */
     }
 
-    static CURLcode test_unit9999(char *arg)
+    static CURLcode test_unit9999(const char *arg)
     {
       UNITTEST_BEGIN(t9999_setup())
 
index 41b0a3b63b50aa943dbddc217d84191d82dc7d37..a5ddf11f498ca4bdba92fd204a79ab02acdb5088 100644 (file)
@@ -33,7 +33,7 @@ static void test_Curl_llist_dtor(void *key, void *value)
   (void)value;
 }
 
-static CURLcode test_unit1300(char *arg)
+static CURLcode test_unit1300(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 84e85877bf45a7f47302b3b5885aeb90a9b018ac..54693631ff54f4c65b3f1034acf0fafb1319d63c 100644 (file)
@@ -34,7 +34,7 @@ struct etest {
   size_t olen;
 };
 
-static CURLcode test_unit1302(char *arg)
+static CURLcode test_unit1302(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   CURLcode rc;
index 16334131d3f001574a258c7dd648fd65a6abf6e6..49ff3e69f2ce206801262f6e44b907bee67c1845 100644 (file)
@@ -65,7 +65,7 @@ static void t1303_stop(struct Curl_easy *easy)
  * N           various values of now
  */
 
-static CURLcode test_unit1303(char *arg)
+static CURLcode test_unit1303(const char *arg)
 {
   struct Curl_easy *easy;
 
index 2369ce67bf45b3a6b13cc857e2ed5c14e4e8b450..250a2ee3f61cbf3063a1b4be7e72ee5ff8fec611 100644 (file)
@@ -33,7 +33,7 @@ static void t1304_stop(char **password, char **login)
   Curl_safefree(*login);
 }
 
-static CURLcode test_unit1304(char *arg)
+static CURLcode test_unit1304(const char *arg)
 {
   char *login = NULL;
   char *password = NULL;
@@ -178,7 +178,7 @@ static CURLcode test_unit1304(char *arg)
 
 #else
 
-static CURLcode test_unit1304(char *arg)
+static CURLcode test_unit1304(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   UNITTEST_END_SIMPLE
index 025b2321be912548a00233ac61d8e76e417b42b1..e95e2994535d1e829695d2dd04930e4c213f2749 100644 (file)
@@ -97,7 +97,7 @@ static CURLcode create_node(void)
   return CURLE_OK;
 }
 
-static CURLcode test_unit1305(char *arg)
+static CURLcode test_unit1305(const char *arg)
 {
   UNITTEST_BEGIN(t1305_setup())
 
index 0265ac30e038a01ba48c6fb82c169a965bf7ec65..6eb1d4826b70f745fefed71569d9cf3a774bfadd 100644 (file)
@@ -63,7 +63,7 @@ static const char *ret2name(int i)
   /* not reached */
 }
 
-static CURLcode test_unit1307(char *arg)
+static CURLcode test_unit1307(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
@@ -311,7 +311,7 @@ static CURLcode test_unit1307(char *arg)
 
 #else
 
-static CURLcode test_unit1307(char *arg)
+static CURLcode test_unit1307(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   UNITTEST_END_SIMPLE
index 07b2cdfbfc9223e1d2fcf93ad3722606dcf0a49d..6fac6dbc4b1930d12604ac6f928b7da5d99a8d61 100644 (file)
@@ -56,7 +56,7 @@ static void splayprint(struct Curl_tree *t, int d, char output)
   splayprint(t->smaller, d + 1, output);
 }
 
-static CURLcode test_unit1309(char *arg)
+static CURLcode test_unit1309(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 15417fa6d9f9639a2e5cf59e05c62950983c2b5b..f53df89226d5b2e2aead5d66c0e96569a132bc8d 100644 (file)
@@ -23,7 +23,7 @@
  ***************************************************************************/
 #include "unitcheck.h"
 
-static CURLcode test_unit1323(char *arg)
+static CURLcode test_unit1323(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 9b0396028613b69b632b232f3c1dd41c1c565561..bd7fc6e2592bf1f68bb8891cbee386e28a4a9659 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "memdebug.h"
 
-static CURLcode test_unit1330(char *arg)
+static CURLcode test_unit1330(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 28cb1e83a14aceab668139740b21fa3905bc97e4..e6ac18f0810752ed3672ad1929f696c332b04b51 100644 (file)
@@ -25,7 +25,7 @@
 #include "memdebug.h"
 #include "unitprotos.h"
 
-static CURLcode test_unit1395(char *arg)
+static CURLcode test_unit1395(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index c56eaacace5a44a34f5b91064932c349c0dc72b8..aa7ee933758198c93e8d8f7da69f8f02a961161a 100644 (file)
@@ -37,7 +37,7 @@ static void t1396_stop(CURL *easy)
   curl_global_cleanup();
 }
 
-static CURLcode test_unit1396(char *arg)
+static CURLcode test_unit1396(const char *arg)
 {
   CURL *easy;
 
index 5da11021a727951438f9753bd4260fcc566ab398..7d3d4fd7f7986b9259505d32a8ab73d5d92d3020 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "vtls/hostcheck.h"
 
-static CURLcode test_unit1397(char *arg)
+static CURLcode test_unit1397(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 614bd91b37caa341b2248f68e9a641ee7c6623d2..fcdd3ec9bfd7b29b65a03b0e808a90da723352d7 100644 (file)
@@ -28,7 +28,7 @@
 #pragma GCC diagnostic ignored "-Wformat"
 #endif
 
-static CURLcode test_unit1398(char *arg)
+static CURLcode test_unit1398(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 9c3be1c4a6ff45cbc6711b77b1caaf71893017ff..ca632eb2d6937f0aa1a38a9ba3d099cd2813bea8 100644 (file)
@@ -71,7 +71,7 @@ static void expect_timer_seconds(struct Curl_easy *data, int seconds)
  * E.g., if t_starttransfer took 2 seconds initially and took another 1
  * second for the redirect request, then the resulting t_starttransfer should
  * be 3 seconds. */
-static CURLcode test_unit1399(char *arg)
+static CURLcode test_unit1399(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 748e2311495441b263846c3eedb59ea3f32de3ef..a347203255701756913319eb6f1efeab877ae526 100644 (file)
@@ -45,7 +45,7 @@ static void t1600_stop(CURL *easy)
   curl_global_cleanup();
 }
 
-static CURLcode test_unit1600(char *arg)
+static CURLcode test_unit1600(const char *arg)
 {
   CURL *easy;
 
index b29d075dab054109f387a25e271afab26edbd19e..d31866bb741aeac94c1b07333b291a3e0eacf746 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "curl_md5.h"
 
-static CURLcode test_unit1601(char *arg)
+static CURLcode test_unit1601(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 996c7f9ae8a1a07c1abc268b1af8a82a622066d9..e397bdb5ca5f3cd74e0f078c28f1af224e99f259 100644 (file)
@@ -45,7 +45,7 @@ static void t1602_stop(struct Curl_hash *hash)
   Curl_hash_destroy(hash);
 }
 
-static CURLcode test_unit1602(char *arg)
+static CURLcode test_unit1602(const char *arg)
 {
   struct Curl_hash hash;
 
index e19b3c2a51c79ae11e6eacf486882628ab588c49..f6e39dc6888c661639555a24e456dc824586f9e2 100644 (file)
@@ -57,7 +57,7 @@ static void t1603_stop(struct Curl_hash *hash_static)
   Curl_hash_destroy(hash_static);
 }
 
-static CURLcode test_unit1603(char *arg)
+static CURLcode test_unit1603(const char *arg)
 {
   struct Curl_hash hash_static;
 
index e3ea870dfda7ae6d74e5c35ba44a52458fd1c575..a092ff1639767337cc055b4e1f4c441e103918c0 100644 (file)
@@ -44,7 +44,7 @@ static void t1605_stop(CURL *easy)
   curl_global_cleanup();
 }
 
-static CURLcode test_unit1605(char *arg)
+static CURLcode test_unit1605(const char *arg)
 {
   CURL *easy;
 
index 0a42db03965692e51a3152d74a609a67583eed26..e39ecaecdc084e5c840b65221d08d8ce33198934 100644 (file)
@@ -76,7 +76,7 @@ static int runawhile(struct Curl_easy *easy,
   return finaltime;
 }
 
-static CURLcode test_unit1606(char *arg)
+static CURLcode test_unit1606(const char *arg)
 {
   struct Curl_easy *easy;
 
index a9ba56e3251df910f9cab59c8015dc143126eefc..26d1457df6b5f0f842e5b4a1397981b994377447 100644 (file)
@@ -36,7 +36,7 @@ static CURLcode t1607_setup(void)
   return res;
 }
 
-static CURLcode test_unit1607(char *arg)
+static CURLcode test_unit1607(const char *arg)
 {
   /* In builds without IPv6 support CURLOPT_RESOLVE should skip over those
      addresses, so we have to do that as well. */
index 1c8ef3e961438394f5fcdfec459b5070cbf44a54..7b5467632c5971440848ef646acd57fdbb7986ab 100644 (file)
@@ -42,7 +42,7 @@ static CURLcode t1608_setup(void)
   return CURLE_OK;
 }
 
-static CURLcode test_unit1608(char *arg)
+static CURLcode test_unit1608(const char *arg)
 {
   UNITTEST_BEGIN(t1608_setup())
 
@@ -74,7 +74,7 @@ static CURLcode test_unit1608(char *arg)
 
 #else
 
-static CURLcode test_unit1608(char *arg)
+static CURLcode test_unit1608(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   UNITTEST_END_SIMPLE
index a6bf0e300257fe5e1999650da01509505662fbac..4485c3f046e2fb9751339a08037aee64de23feae 100644 (file)
@@ -68,7 +68,7 @@ Test:
  expected result: cached address has zero timestamp and new address
 */
 
-static CURLcode test_unit1609(char *arg)
+static CURLcode test_unit1609(const char *arg)
 {
   UNITTEST_BEGIN(t1609_setup())
 
index e008b062b7a5ff85b56bad3e1c782f0245780c50..73a546a85eaf13a1613610b0d3a8f21e193c6c9e 100644 (file)
@@ -32,7 +32,7 @@ static CURLcode t1610_setup(void)
   return res;
 }
 
-static CURLcode test_unit1610(char *arg)
+static CURLcode test_unit1610(const char *arg)
 {
   UNITTEST_BEGIN(t1610_setup())
 
index c39334bdd143b1bf42b8e76239325436f3e69719..5337aa33a319c8b60085da61a124070ef05461b1 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "curl_md4.h"
 
-static CURLcode test_unit1611(char *arg)
+static CURLcode test_unit1611(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 1bbe31569d049d1da402fbe076fa20e6fd423115..0cc0c025466789384497febf7543e62c8768c076 100644 (file)
@@ -26,7 +26,7 @@
 #include "curl_hmac.h"
 #include "curl_md5.h"
 
-static CURLcode test_unit1612(char *arg)
+static CURLcode test_unit1612(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index a6ee3130c27bc8305d961399abceee89bbd0a3f5..4ee18df72f17a0d2b8a348cf930350e51374013a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "noproxy.h"
 
-static CURLcode test_unit1614(char *arg)
+static CURLcode test_unit1614(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 48ea21981d119c297916e25eae634115c2fcf1f3..44dc1ae0454501441d030a6486f1010fbceb9dec 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "curl_sha512_256.h"
 
-static CURLcode test_unit1615(char *arg)
+static CURLcode test_unit1615(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 10948e2efc1e956dd4b065803020d94f025bb4a4..7641cbeace94021c3f00656528991dca4bfdc500 100644 (file)
@@ -45,7 +45,7 @@ static void t1616_stop(struct uint_hash *hash)
   Curl_uint_hash_destroy(hash);
 }
 
-static CURLcode test_unit1616(char *arg)
+static CURLcode test_unit1616(const char *arg)
 {
   struct uint_hash hash;
 
index 8521f63b921a89c2f4b8bcef110a67b210d94f43..14b377b640e9d1eed1aab4b1b582e6c4554021de 100644 (file)
@@ -69,7 +69,7 @@ static void t1620_parse(
   free(options);
 }
 
-static CURLcode test_unit1620(char *arg)
+static CURLcode test_unit1620(const char *arg)
 {
   UNITTEST_BEGIN(t1620_setup())
 
index 12c8443e517e0c78424cefc84b5f679ba39e8e4b..89e72262d38459ffb985db2a4d225ab1f2cd21cb 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "doh.h"
 
-static CURLcode test_unit1650(char *arg)
+static CURLcode test_unit1650(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index b6c37c9b57dd169ef6878f35b854c644de711ced..5ebce7aabdad020439c2428fc0477f5b2423425a 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "vtls/x509asn1.h"
 
-static CURLcode test_unit1651(char *arg)
+static CURLcode test_unit1651(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 2d79390139d3987d05710d8b9e703dcec6ce2224..ad3014edca47517e3d6d1a76d259a754ef8f562e 100644 (file)
@@ -82,7 +82,7 @@ static int verify(const char *info, const char *two)
   return strncmp(info, two, nl - info);
 }
 
-static CURLcode test_unit1652(char *arg)
+static CURLcode test_unit1652(const char *arg)
 {
   struct Curl_easy *easy;
 
index e203fd9f0043cd42c60b7ca368f69bb4152b05b8..1e6fd9ef269cba38ae64f0064a32b2131bae5ef2 100644 (file)
@@ -41,7 +41,7 @@ static CURLUcode parse_port(CURLU *url, char *h, bool has_scheme)
   return ret;
 }
 
-static CURLcode test_unit1653(char *arg)
+static CURLcode test_unit1653(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 4eee6a08dd4ab29f9b18c83c069fc76b3e3e6f09..4fe2439907a12c68339f1420c00d960b2a681430 100644 (file)
@@ -26,7 +26,7 @@
 #include "urldata.h"
 #include "altsvc.h"
 
-static CURLcode test_unit1654(char *arg)
+static CURLcode test_unit1654(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 55cf8c6c5679a17d419e43e1d13c4cdeb126dffe..a22e087271395ad253aa1abffbf7581dc1006bea 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "doh.h" /* from the lib dir */
 
-static CURLcode test_unit1655(char *arg)
+static CURLcode test_unit1655(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 7a41c8d0ee9bc43ec903200f2f8c608f28a88fa4..520a430fe930e05be11fd147a224f4fec6a5f115 100644 (file)
@@ -56,7 +56,7 @@ static bool do_test(const struct test_spec *spec, size_t i,
   return TRUE;
 }
 
-static CURLcode test_unit1656(char *arg)
+static CURLcode test_unit1656(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
@@ -114,7 +114,7 @@ static CURLcode test_unit1656(char *arg)
 
 #else
 
-static CURLcode test_unit1656(char *arg)
+static CURLcode test_unit1656(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   puts("not tested since Curl_x509_GTime2str() is not built in");
index efe5643435031d11ee641f93724622a3e714dc48..4898d6c13943e65eef107a1364cfc81eaedb356b 100644 (file)
@@ -85,7 +85,7 @@ static bool do_test1657(const struct test1657_spec *spec, size_t i,
   return TRUE;
 }
 
-static CURLcode test_unit1657(char *arg)
+static CURLcode test_unit1657(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
@@ -114,7 +114,7 @@ static CURLcode test_unit1657(char *arg)
 
 #else
 
-static CURLcode test_unit1657(char *arg)
+static CURLcode test_unit1657(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   puts("not tested since Curl_x509_getASN1Element() is not built in");
index 9060456fa13ec295d9e49841df27650fa1f4cf5d..0a6a2e71c15eb2a2ba0199fb220f41663600b7be 100644 (file)
@@ -114,7 +114,7 @@ static void rrresults(struct Curl_https_rrinfo *rr, CURLcode result)
   }
 }
 
-static CURLcode test_unit1658(char *arg)
+static CURLcode test_unit1658(const char *arg)
 {
   UNITTEST_BEGIN(t1658_setup())
 
@@ -543,7 +543,7 @@ static CURLcode test_unit1658(char *arg)
 
 #else /* CURL_DISABLE_DOH or not HTTPSRR enabled */
 
-static CURLcode test_unit1658(char *arg)
+static CURLcode test_unit1658(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   UNITTEST_END_SIMPLE
index 5889479721bdcb5e7137c2aa0ab82cb9b9635253..5c66b1831cf57a93dbf8726176b97b74223c564e 100644 (file)
@@ -27,7 +27,7 @@
 #include "hsts.h"
 
 #if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_HSTS)
-static CURLcode test_unit1660(char *arg)
+static CURLcode test_unit1660(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
   puts("nothing to do when HTTP or HSTS are disabled");
@@ -46,7 +46,7 @@ static void showsts(struct stsentry *e, const char *chost)
   }
 }
 
-static CURLcode test_unit1660(char *arg)
+static CURLcode test_unit1660(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 3ae53629c2876ff32e01a7aa12dc0301dd055d43..446ef51bda3e37701b3d3c20a6a93fab3809a42f 100644 (file)
@@ -45,7 +45,7 @@ static void t1661_stop(struct bufref *bufref)
   Curl_bufref_free(bufref);
 }
 
-static CURLcode test_unit1661(char *arg)
+static CURLcode test_unit1661(const char *arg)
 {
   struct bufref bufref;
 
index b017965380f940721a5c5d3bb3d54f7f0e7f489b..0d6fb4bbbe506fdf48a62b5c7a7629cd92fcee2b 100644 (file)
@@ -72,7 +72,7 @@ static void t1663_parse(
   free(host);
 }
 
-static CURLcode test_unit1663(char *arg)
+static CURLcode test_unit1663(const char *arg)
 {
   UNITTEST_BEGIN(t1663_setup())
 
index d3e7670108d9639e7ef47b9f5627a631b397b1bc..72ae49676bd8e31d18afadfa597236cb4550f822 100644 (file)
@@ -39,7 +39,7 @@ static CURLcode t1664_setup(void)
   return res;
 }
 
-static CURLcode test_unit1664(char *arg)
+static CURLcode test_unit1664(const char *arg)
 {
   UNITTEST_BEGIN(t1664_setup())
 
index 48bb24c060d1ac49827c05d48590564cfc1af971..c3925d1bc0c5db4b8414f39973e5fa76787becae 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "http_aws_sigv4.h"
 
-static CURLcode test_unit1979(char *arg)
+static CURLcode test_unit1979(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 347ae2e7ddbed9350fbfa20d9b1efcf55e2cb8f5..9e38d8a678ce1b4b4cde398fbaeac319c2ec9b6d 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "http_aws_sigv4.h"
 
-static CURLcode test_unit1980(char *arg)
+static CURLcode test_unit1980(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 0b664a003fcf2f7e06d25750b1e2b74668a59f27..b5818dd77f51d5f280c4f955096337568c672c7c 100644 (file)
@@ -352,7 +352,7 @@ static void test_connect(CURL *easy, const struct test_case *tc)
 #define TC_TMOT     90000  /* 90 sec max test duration */
 #define CNCT_TMOT   60000  /* 60sec connect timeout */
 
-static CURLcode test_unit2600(char *arg)
+static CURLcode test_unit2600(const char *arg)
 {
   CURL *easy;
 
index 3dbd9b40fc4be2d0351523ecdcb463a8d3a55cf1..aadd69fc120476009d88cee2497927f0d1f69ca9 100644 (file)
@@ -205,7 +205,7 @@ static void check_bufq(size_t pool_spares,
     Curl_bufcp_free(&pool);
 }
 
-static CURLcode test_unit2601(char *arg)
+static CURLcode test_unit2601(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 2228d954f7b9edb7faa97a53c8838d046cb9d1ef..f031132986cc2d8f95838f60f360f13db2d54723 100644 (file)
@@ -27,7 +27,7 @@
 #include "dynhds.h"
 #include "curl_trc.h"
 
-static CURLcode test_unit2602(char *arg)
+static CURLcode test_unit2602(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 060356eecf78f2e87eecb760fa4f023767eb5bb9..5915555f8b04c991de8044cc3a623d67865f73dc 100644 (file)
@@ -112,7 +112,7 @@ static void parse_success(const struct tcase *t)
 }
 #endif
 
-static CURLcode test_unit2603(char *arg)
+static CURLcode test_unit2603(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 23730e63c6781f25b90be9b7afb9645fcdd1bed6..80ab407e4b5e5549816a28edf71b77e26a409748 100644 (file)
@@ -25,7 +25,7 @@
 #include "vssh/curl_path.h"
 #include "memdebug.h"
 
-static CURLcode test_unit2604(char *arg)
+static CURLcode test_unit2604(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index ff4e29e18fd3ff6ce816ee27675192e9461be0bf..023bf0ddb6fde2032c2a9aad29f25c3e29e7de04 100644 (file)
@@ -25,7 +25,7 @@
 #include "curl_get_line.h"
 #include "memdebug.h"
 
-static CURLcode test_unit3200(char *arg)
+static CURLcode test_unit3200(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 13ee8cceab55e009d00e7bf2303298d6f990ea8a..bb42e9e0c6295dacd87efd989f1844d124258944 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "vtls/cipher_suite.h"
 
-static CURLcode test_unit3205(char *arg)
+static CURLcode test_unit3205(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 444912a21efe74cd5e585c8ccc6b8318b5c840ba..c2fac4bbc52c2bf69e53486ba26e73b021f4e363 100644 (file)
@@ -120,7 +120,7 @@ static void check_set(const char *name, unsigned int capacity,
   Curl_uint_bset_destroy(&bset);
 }
 
-static CURLcode test_unit3211(char *arg)
+static CURLcode test_unit3211(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index 7386aad0e73a6603abc670938f3e669a4bc48378..261d294528feb869efe64ba69153d4ffb66f6d08 100644 (file)
@@ -41,7 +41,7 @@ static void t3212_stop(struct uint_tbl *tbl)
   Curl_uint_tbl_destroy(tbl);
 }
 
-static CURLcode test_unit3212(char *arg)
+static CURLcode test_unit3212(const char *arg)
 {
   struct uint_tbl tbl;
   int dummy;
index 7ecdfb26642ee0921a2d506322ac1ab644da3ca8..850b275c86cfc1615fb868cedea8d25b9b91d919 100644 (file)
@@ -90,7 +90,7 @@ static void check_spbset(const char *name, const unsigned int *s, size_t slen)
   Curl_uint_spbset_destroy(&bset);
 }
 
-static CURLcode test_unit3213(char *arg)
+static CURLcode test_unit3213(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE
 
index fa65b06c58032f2a16f8397fa368362862d2ea89..34549fc2966c82c94ba1212474a065beb90c1a09 100644 (file)
@@ -56,7 +56,7 @@ static void checksize(const char *name, size_t size, size_t allowed)
 #define MAX_CURLMSG             24
 #define MAX_CURL_HEADER         48
 
-static CURLcode test_unit3214(char *arg)
+static CURLcode test_unit3214(const char *arg)
 {
   UNITTEST_BEGIN_SIMPLE