diff --git a/zeq/http/server.cpp b/zeq/http/server.cpp index d121a06..03e57fd 100644 --- a/zeq/http/server.cpp +++ b/zeq/http/server.cpp @@ -247,7 +247,7 @@ class Server::Impl : public detail::Sender namespace { -std::string _getServerParameter( const int argc, const char* argv[] ) +std::string _getServerParameter( const int argc, const char* const* argv ) { for( int i = 0; i < argc; ++i ) { @@ -286,7 +286,7 @@ Server::~Server() {} -std::unique_ptr< Server > Server::parse( const int argc, const char* argv[] ) +std::unique_ptr< Server > Server::parse( const int argc, const char* const* argv ) { const std::string& param = _getServerParameter( argc, argv ); if( param.empty( )) @@ -295,7 +295,7 @@ std::unique_ptr< Server > Server::parse( const int argc, const char* argv[] ) return std::unique_ptr< Server >( new Server( URI( param ))); } -std::unique_ptr< Server > Server::parse( const int argc, const char* argv[], +std::unique_ptr< Server > Server::parse( const int argc, const char* const* argv, Receiver& shared ) { const std::string& param = _getServerParameter( argc, argv ); diff --git a/zeq/http/server.h b/zeq/http/server.h index b934449..597ef7c 100644 --- a/zeq/http/server.h +++ b/zeq/http/server.h @@ -63,9 +63,9 @@ class Server : public zeq::Receiver * and a randomly chosen port */ ZEQ_API static std::unique_ptr< Server > parse( int argc, - const char* argv[] ); + const char* const* argv ); ZEQ_API static std::unique_ptr< Server > parse( int argc, - const char* argv[], + const char* const* argv, Receiver& shared ); /** * Get the publisher URI.