Fix a couple compile items.

This commit is contained in:
Adam Ierymenko 2014-01-27 23:16:15 -08:00
parent f80ec871f6
commit ffffc0179f
2 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@ const char *Network::statusString(const Status s)
case NETWORK_OK: return "OK"; case NETWORK_OK: return "OK";
case NETWORK_ACCESS_DENIED: return "ACCESS_DENIED"; case NETWORK_ACCESS_DENIED: return "ACCESS_DENIED";
case NETWORK_NOT_FOUND: return "NOT_FOUND"; case NETWORK_NOT_FOUND: return "NOT_FOUND";
case NETWORK_INITIALIZATION_FAILED: return "INITIALIZATION_FAILED";
} }
return "(invalid)"; return "(invalid)";
} }
@ -266,6 +267,7 @@ void Network::_pushMembershipCertificate(const Address &peer,bool force,uint64_t
} }
void Network::threadMain() void Network::threadMain()
throw()
{ {
try { try {
// Setup thread -- this exits when tap is constructed. It's here // Setup thread -- this exits when tap is constructed. It's here

View File

@ -268,6 +268,8 @@ public:
if (_lastConfigUpdate > 0) if (_lastConfigUpdate > 0)
return NETWORK_OK; return NETWORK_OK;
else return NETWORK_WAITING_FOR_FIRST_AUTOCONF; else return NETWORK_WAITING_FOR_FIRST_AUTOCONF;
case NETCONF_FAILURE_INIT_FAILED:
return NETWORK_INITIALIZATION_FAILED;
} }
} else if (_netconfFailure == NETCONF_FAILURE_INIT_FAILED) } else if (_netconfFailure == NETCONF_FAILURE_INIT_FAILED)
return NETWORK_INITIALIZATION_FAILED; return NETWORK_INITIALIZATION_FAILED;