1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- base/src/downloadmanager.cpp.orig 2003-09-16 17:34:53 UTC
+++ base/src/downloadmanager.cpp
@@ -398,7 +398,7 @@ Error DownloadManager::ReadDownloadFile(
{
// find a suitable plugin
result = kError_FormatNotSupported;
- char* extension = strrchr(url, '.');
+ const char* extension = strrchr(url, '.');
if(extension)
{
@@ -558,7 +558,7 @@ static int32_t GetContentLengthFromHeade
{
int32_t result = -1;
- char* cp = strstr(buffer, "Content-Length:");
+ const char* cp = strstr(buffer, "Content-Length:");
if(cp)
{
@@ -572,7 +572,7 @@ static int32_t GetContentLengthFromHeade
static void GetContentTimeFromHeader(const char* buffer, string &mTime)
{
- char* cp = strstr(buffer, "Last-Modified:");
+ const char* cp = strstr(buffer, "Last-Modified:");
if(cp)
{
string::size_type pos;
@@ -748,7 +748,7 @@ Error DownloadManager::Download(Download
struct sockaddr_in addr;
struct hostent host;
SOCKET s = -1;
- char* file = NULL;
+ const char* file = NULL;
bool useProxy;
struct stat st;
string destPath;
|