GitHub issue #461 -- plus a bit of cleanup and optimization

This commit is contained in:
Adam Ierymenko 2017-03-17 17:15:23 -07:00
parent ef46d3c97d
commit e10325e133
6 changed files with 29 additions and 19 deletions

View file

@ -56,12 +56,9 @@ public:
THING_IPV6_ADDRESS = 3
};
CertificateOfOwnership() :
_networkId(0),
_ts(0),
_id(0),
_thingCount(0)
CertificateOfOwnership()
{
memset(this,0,sizeof(CertificateOfOwnership));
}
CertificateOfOwnership(const uint64_t nwid,const uint64_t ts,const Address &issuedTo,const uint32_t id) :