static CURLcode dict_do(struct Curl_easy *data, bool *done)
{
- const char *word;
+ char *word;
char *eword = NULL;
char *ppath;
char *database = NULL;
{
CURLcode result;
unsigned char *path = NULL;
- char *tmp = NULL;
+ const char *tmp = NULL;
char *response;
size_t len;
bool have_chlg;
/* We only want the part of the local path that is on the right
side of the rightmost slash and backslash. */
const char *filep = strrchr(filename, '/');
- char *file2 = strrchr(filep ? filep : filename, '\\');
+ const char *file2 = strrchr(filep ? filep : filename, '\\');
char *encfile;
if(file2)
*/
char hostname[MAX_IP6LEN];
CURLU *u;
- char *endbr = strchr(str, ']');
+ const char *endbr = strchr(str, ']');
size_t hlen;
CURLUcode rc;
CURLcode result = CURLE_OK;
}
else {
/* this is meant as a variable to output */
- char *end;
+ const char *end;
size_t vlen;
if('{' == ptr[1]) {
- struct writeoutvar *wv = NULL;
+ const struct writeoutvar *wv = NULL;
struct writeoutvar find = { 0 };
end = strchr(ptr, '}');
ptr += 2; /* pass the % and the { */
/* make sure the last command ends with a comma too! */
while(p) {
- char *e = strchr(p, ',');
+ const char *e = strchr(p, ',');
if(e) {
size_t n = (size_t)(e - p);
char buf[80];
if(req->testno == DOCNUMBER_NOTHING) {
/* check for a Testno: header with the test case number */
- char *testno = strstr(line, "\nTestno: ");
+ const char *testno = strstr(line, "\nTestno: ");
if(testno) {
pval = &testno[9];
if(!curlx_str_number(&pval, &num, INT_MAX)) {
return 1; /* done */
}
else if(strstr(req->reqbuf, "\r\n0\r\n")) {
- char *last_crlf_char = strstr(req->reqbuf, "\r\n\r\n");
+ const char *last_crlf_char = strstr(req->reqbuf, "\r\n\r\n");
while(TRUE) {
if(!strstr(last_crlf_char + 4, "\r\n\r\n"))
break;