diff options
Diffstat (limited to 'libs/libcurl/src/gopher.c')
-rw-r--r-- | libs/libcurl/src/gopher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libcurl/src/gopher.c b/libs/libcurl/src/gopher.c index 3fc6fc0f56..05e7ff8fed 100644 --- a/libs/libcurl/src/gopher.c +++ b/libs/libcurl/src/gopher.c @@ -162,7 +162,7 @@ static CURLcode gopher_do(struct Curl_easy *data, bool *done) /* Create selector. Degenerate cases: / and /1 => convert to "" */
if(strlen(gopherpath) <= 2) {
- sel = (char *)"";
+ sel = (char *)CURL_UNCONST("");
len = strlen(sel);
free(gopherpath);
}
@@ -236,7 +236,7 @@ static CURLcode gopher_do(struct Curl_easy *data, bool *done) failf(data, "Failed sending Gopher request");
return result;
}
- result = Curl_client_write(data, CLIENTWRITE_HEADER, (char *)"\r\n", 2);
+ result = Curl_client_write(data, CLIENTWRITE_HEADER, "\r\n", 2);
if(result)
return result;
|