Re: Problem with xstrings cast to char* under Solaris

Yann Rouillard <[email protected]> Fri, 28 Dec 2007 15:14:18 +0100
Newsgroups gmane.network.lftp.devel
Message-ID <1198851258.6014.1.camel@localhost>
On ven, 2007-12-28 at 12:19 +0300, Alexander V. Lukyanov wrote:
> On Wed, Dec 26, 2007 at 12:27:11PM +0100, Yann Rouillard wrote:
> > During compilation, I have several cast errors, like this one:
> > "FileCopy.cc", line 1042: Error: Cannot use const char* to initialize char*.
> 
> Thanks for the report. Here is a better patch, please test.

This doesn't work, I have the following error message:

"FileGlob.cc", line 49: Error: Too many arguments in call to "static
xstring::get_tmp()".
"FileGlob.cc", line 49: Warning: A non-POD object of type "xstring_c"
passed as a variable argument to function "static xstring::get_tmp()".

I didn't investigate further, isn't it a problem to use a const char*
like a char * ?

Yann