Skip to content
Snippets Groups Projects
Commit 3a7ae270 authored by Adrien Béraud's avatar Adrien Béraud Committed by Alexandre Lision
Browse files

build: fix compilation with clang

Refs #69759

Change-Id: I31cc7ab37a756f8750d84829e187ca81aa159701
parent f7157454
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#pragma once #pragma once
#include <cstdlib> // std::abs
namespace ring { namespace ring {
/** /**
......
...@@ -81,7 +81,7 @@ static constexpr int ICE_INIT_TIMEOUT {5}; ...@@ -81,7 +81,7 @@ static constexpr int ICE_INIT_TIMEOUT {5};
static constexpr int ICE_NEGOTIATION_TIMEOUT {60}; static constexpr int ICE_NEGOTIATION_TIMEOUT {60};
constexpr const char * const RingAccount::ACCOUNT_TYPE; constexpr const char * const RingAccount::ACCOUNT_TYPE;
constexpr const std::pair<uint16_t, uint16_t> RingAccount::DHT_PORT_RANGE; /* constexpr */ const std::pair<uint16_t, uint16_t> RingAccount::DHT_PORT_RANGE {4000, 8888};
RingAccount::RingAccount(const std::string& accountID, bool /* presenceEnabled */) RingAccount::RingAccount(const std::string& accountID, bool /* presenceEnabled */)
: SIPAccountBase(accountID), via_addr_() : SIPAccountBase(accountID), via_addr_()
......
...@@ -79,7 +79,7 @@ class RingAccount : public SIPAccountBase { ...@@ -79,7 +79,7 @@ class RingAccount : public SIPAccountBase {
constexpr static const char * const ACCOUNT_TYPE = "RING"; constexpr static const char * const ACCOUNT_TYPE = "RING";
constexpr static const in_port_t DHT_DEFAULT_PORT = 4222; constexpr static const in_port_t DHT_DEFAULT_PORT = 4222;
constexpr static const char * const DHT_DEFAULT_BOOTSTRAP = "bootstrap.ring.cx"; constexpr static const char * const DHT_DEFAULT_BOOTSTRAP = "bootstrap.ring.cx";
constexpr static const std::pair<uint16_t, uint16_t> DHT_PORT_RANGE {4000, 8888}; /* constexpr */ static const std::pair<uint16_t, uint16_t> DHT_PORT_RANGE;
const char* getAccountType() const { const char* getAccountType() const {
return ACCOUNT_TYPE; return ACCOUNT_TYPE;
......
...@@ -276,6 +276,7 @@ uint16_t ...@@ -276,6 +276,7 @@ uint16_t
SIPAccountBase::acquirePort(uint16_t port) SIPAccountBase::acquirePort(uint16_t port)
{ {
getPortsReservation()[port / 2] = true; getPortsReservation()[port / 2] = true;
return port;
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment