plib-1.8.0 no longer defines the cchar type (which we used because we were
deriving a class and the base class used this type.) Return to using const char and hope people compiling against earlier versions of plib have compilers that think typedef const char cchar; char *abc; is equivalent to const char *abd;
This commit is contained in:
parent
f08625d64d
commit
ba840da288
1 changed files with 2 additions and 2 deletions
|
@ -40,13 +40,13 @@ class HTTPClient : public netBufferChannel
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
HTTPClient ( cchar* host, int port, cchar* path ) :
|
HTTPClient ( const char* host, int port, const char* path ) :
|
||||||
done( false )
|
done( false )
|
||||||
{
|
{
|
||||||
open ();
|
open ();
|
||||||
connect (host, port);
|
connect (host, port);
|
||||||
|
|
||||||
cchar* s = netFormat ( "GET %s HTTP/1.0\r\n\r\n", path );
|
const char* s = netFormat ( "GET %s HTTP/1.0\r\n\r\n", path );
|
||||||
bufferSend( s, strlen(s) ) ;
|
bufferSend( s, strlen(s) ) ;
|
||||||
|
|
||||||
start.stamp();
|
start.stamp();
|
||||||
|
|
Loading…
Reference in a new issue