From: curt Date: Mon, 22 Mar 2004 15:00:42 +0000 (+0000) Subject: plib-1.8.0 no longer defines the cchar type (which we used because we were X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba840da288689d7b634581776b44846a55be579e;p=flightgear.git 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; --- diff --git a/src/FDM/ExternalNet/ExternalNet.hxx b/src/FDM/ExternalNet/ExternalNet.hxx index 3562b2bf2..21681cc85 100644 --- a/src/FDM/ExternalNet/ExternalNet.hxx +++ b/src/FDM/ExternalNet/ExternalNet.hxx @@ -40,13 +40,13 @@ class HTTPClient : public netBufferChannel public: - HTTPClient ( cchar* host, int port, cchar* path ) : + HTTPClient ( const char* host, int port, const char* path ) : done( false ) { open (); 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) ) ; start.stamp();