mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +02:00
signed UNKNOWN_NODE_ID should be 0
This commit is contained in:
parent
5b181bd351
commit
c7b784aa1f
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ NodeList::NodeList(char newOwnerType, unsigned short int newSocketListenPort) :
|
|||
_ownerType(newOwnerType),
|
||||
_nodeTypesOfInterest(NULL),
|
||||
_ownerID(UNKNOWN_NODE_ID),
|
||||
_lastNodeID(0)
|
||||
_lastNodeID(UNKNOWN_NODE_ID + 1)
|
||||
{
|
||||
memcpy(_domainHostname, DEFAULT_DOMAIN_HOSTNAME, sizeof(DEFAULT_DOMAIN_HOSTNAME));
|
||||
memcpy(_domainIP, DEFAULT_DOMAIN_IP, sizeof(DEFAULT_DOMAIN_IP));
|
||||
|
|
|
@ -41,7 +41,7 @@ extern const char DEFAULT_DOMAIN_HOSTNAME[MAX_HOSTNAME_BYTES];
|
|||
extern const char DEFAULT_DOMAIN_IP[INET_ADDRSTRLEN]; // IP Address will be re-set by lookup on startup
|
||||
extern const int DEFAULT_DOMAINSERVER_PORT;
|
||||
|
||||
const int UNKNOWN_NODE_ID = -1;
|
||||
const int UNKNOWN_NODE_ID = 0;
|
||||
|
||||
class NodeListIterator;
|
||||
|
||||
|
|
Loading…
Reference in a new issue