mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
copyout.cc:135:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char* ptr = strstr( url, "://" ); ^ ~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
11 lines
421 B
C++
11 lines
421 B
C++
--- copyout.cc.orig 2000-09-21 13:05:31 UTC
|
|
+++ copyout.cc
|
|
@@ -132,7 +132,7 @@ copy_out( size_t filesize, size_t metasi
|
|
static const char* index = "index.html";
|
|
|
|
// find hostname part after the scheme (okok, not counting port, etc.)
|
|
- char* ptr = strstr( url, "://" );
|
|
+ const char* ptr = strstr( url, "://" );
|
|
if ( ptr == 0 || strlen(ptr) < 4 ) return false;
|
|
|
|
// create filename to store contents into
|