![]() |
Lee Howard typed (on Sun, Nov 18, 2007 at 07:43:00PM -0800):
Jean-Pierre Radley wrote:
I had zero problems compiling 5.1.10 on SCO OSR 6.0.0, but 5.1.11 barfs:My 'man strchr' says that it returns (char *) and not (const char *). What does yours say?
/bin/CC -D__ANSI_CPP__ -I. -I.. -I.././regex -I.././util -I.././util -I/usr/local/include -O -c InetTransport.c++ "InetTransport.c++", line 153: error: a value of type "const char *" cannot be used to initialize an entity of type "char *" char *cp = strchr(client.getLastResponse(), '('); ^
It returns (char *), but the first argument is (const char *):
char * strchr(const char * s, int c)
--- util/InetTransport.c++.orig 2007-11-19 09:29:31.702201768 -0800 +++ util/InetTransport.c++ 2007-11-19 09:30:03.754329104 -0800 @@ -150,7 +150,8 @@ if (client.isPassive()) { if (client.command("PASV") != FaxClient::COMPLETE) return (false); - char *cp = strchr(client.getLastResponse(), '('); + char *cp; + cp = strchr(client.getLastResponse(), '('); if (!cp) return (false); cp++; unsigned int v[6];
____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*