Browse Source

Fix FTBFS with stricter C++11

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 1 year ago
parent
commit
0184742fd6
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
4 changed files with 4 additions and 4 deletions
  1. 1
    1
      mcop/tcpserver.cc
  2. 1
    1
      mcop/unixserver.cc
  3. 1
    1
      soundserver/gslplayobject_impl.cc
  4. 1
    1
      soundserver/wavplayobject_impl.cc

+ 1
- 1
mcop/tcpserver.cc View File

@@ -121,7 +121,7 @@ bool TCPServer::initSocket()
socket_addr.sin_family = AF_INET;
socket_addr.sin_port = htons( TCPServerPort ); // 0 = choose port freely
socket_addr.sin_addr.s_addr = htonl( inet_addr("0.0.0.0") );
if ( bind( theSocket, (struct sockaddr *) &socket_addr,
if ( ::bind( theSocket, (struct sockaddr *) &socket_addr,
sizeof(struct sockaddr_in) ) < 0 )
{
arts_warning("MCOP TCPServer: can't bind to port/address");

+ 1
- 1
mcop/unixserver.cc View File

@@ -98,7 +98,7 @@ bool UnixServer::initSocket(const string& serverID)

xserverpath = socket_addr.sun_path;

if ( bind( theSocket, (struct sockaddr *) &socket_addr,
if ( ::bind( theSocket, (struct sockaddr *) &socket_addr,
sizeof(struct sockaddr_un) ) < 0 )
{
arts_warning("MCOP UnixServer: can't bind to file \"%s\"",

+ 1
- 1
soundserver/gslplayobject_impl.cc View File

@@ -134,7 +134,7 @@ public:
*/
std::string description()
{
return "no description available (see "__FILE__")";
return "no description available (see " __FILE__ ")";
}

poTime currentTime()

+ 1
- 1
soundserver/wavplayobject_impl.cc View File

@@ -74,7 +74,7 @@ public:
* KMedia2 interface
*/
string description() {
return "no description (see "__FILE__")";
return "no description (see " __FILE__ ")";
}

poTime currentTime() {

Loading…
Cancel
Save