Commit 34d8c61d9f49a72511f888c2309db71ae2f940b0

Authored by Jürgen Knödlseder
1 parent b1be222c

Use integer instead of unsigned integer as socket number (need to check against negative values).

Showing 1 changed file with 1 additions and 1 deletions
src/vo/GVOHub.cpp
... ... @@ -361,7 +361,7 @@ void GVOHub::start_hub(void)
361 361 while (1) {
362 362  
363 363 // Accept connection from the client
364   - socklen_t socket = accept(m_socket, (struct sockaddr *)&cli_addr, &clilen);
  364 + int socket = accept(m_socket, (struct sockaddr *)&cli_addr, &clilen);
365 365 if (socket < 0) {
366 366 std::string msg = "Client connection to socket not accepted.";
367 367 throw GException::runtime_error(G_START_HUB, msg);
... ...