[#4248] Moved watch socket const init

This commit is contained in:
Francis Dupont
2025-12-09 11:18:22 +01:00
parent 036e6021a0
commit a005af7c52
2 changed files with 5 additions and 4 deletions

View File

@@ -20,9 +20,9 @@
namespace isc {
namespace util {
const int WatchSocket::SOCKET_NOT_VALID = -1;
const int WatchSocket::SOCKET_NOT_VALID;
const uint32_t WatchSocket::MARKER;
const uint32_t WatchSocket::MARKER = 0xDEADBEEF;
WatchSocket::WatchSocket()
: source_(SOCKET_NOT_VALID), sink_(SOCKET_NOT_VALID) {

View File

@@ -47,11 +47,12 @@ public:
class WatchSocket : public boost::noncopyable {
public:
/// @brief Value used to signify an invalid descriptor.
static const int SOCKET_NOT_VALID = -1;
static const int SOCKET_NOT_VALID /* = -1*/;
/// @brief Value written to the source when marking the socket as ready.
/// The value itself is arbitrarily chosen as one that is unlikely to occur
/// otherwise and easy to debug.
static const uint32_t MARKER = 0xDEADBEEF;
static const uint32_t MARKER /* = 0xDEADBEEF */;
/// @brief Constructor
///