diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-07 15:21:40 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-07 15:21:40 -0400 |
| commit | dcbc9c8ddd7cdb543e213e3402050724174df03a (patch) | |
| tree | dd14e1c884d842d7f64edad9aa9bd476fc07dbb3 /node/Network.hpp | |
| parent | 430882327e477d419f8b6485361c22e1e2844d32 (diff) | |
| download | infinitytier-dcbc9c8ddd7cdb543e213e3402050724174df03a.tar.gz infinitytier-dcbc9c8ddd7cdb543e213e3402050724174df03a.zip | |
Rename error code for no membership certificate.
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index 70be56fc..81af694b 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -135,11 +135,7 @@ public: COM_RESERVED_ID_NETWORK_ID = 1 // network ID, max delta always 0 }; - CertificateOfMembership() - { - memset(_signature.data,0,_signature.size()); - } - + CertificateOfMembership() { memset(_signature.data,0,_signature.size()); } CertificateOfMembership(const char *s) { fromString(s); } CertificateOfMembership(const std::string &s) { fromString(s.c_str()); } @@ -205,20 +201,12 @@ public: /** * @return True if signed */ - inline bool isSigned() const - throw() - { - return (_signedBy); - } + inline bool isSigned() const throw() { return (_signedBy); } /** * @return Address that signed this certificate or null address if none */ - inline const Address &signedBy() const - throw() - { - return _signedBy; - } + inline const Address &signedBy() const throw() { return _signedBy; } private: struct _Qualifier |
