diff options
| author | Adam Ierymenko <[email protected]> | 2019-03-22 15:50:15 -0700 |
|---|---|---|
| committer | Adam Ierymenko <[email protected]> | 2019-03-22 15:50:15 -0700 |
| commit | 2966eac64f549bb5f5f79ddace14dd0bc59c3270 (patch) | |
| tree | 3df91e2845fd99619a74cf1308296970b548c47b /node/Node.cpp | |
| parent | d5303560556cfae45c07214d1c0379d8a048fa3d (diff) | |
Get rid of ZT_FAST_MEMCPY because this is not really needed.
Diffstat (limited to 'node/Node.cpp')
| -rw-r--r-- | node/Node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Node.cpp b/node/Node.cpp index 3342e6ca..c9f38ad3 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -66,7 +66,7 @@ Node::Node(void *uptr,void *tptr,const struct ZT_Node_Callbacks *callbacks,int64 { if (callbacks->version != 0) throw ZT_EXCEPTION_INVALID_ARGUMENT; - ZT_FAST_MEMCPY(&_cb,callbacks,sizeof(ZT_Node_Callbacks)); + memcpy(&_cb,callbacks,sizeof(ZT_Node_Callbacks)); // Initialize non-cryptographic PRNG from a good random source Utils::getSecureRandom((void *)_prngState,sizeof(_prngState)); @@ -494,7 +494,7 @@ ZT_PeerList *Node::peers() const p->hadAggregateLink |= pi->second->hasAggregateLink(); p->pathCount = 0; for(std::vector< SharedPtr<Path> >::iterator path(paths.begin());path!=paths.end();++path) { - ZT_FAST_MEMCPY(&(p->paths[p->pathCount].address),&((*path)->address()),sizeof(struct sockaddr_storage)); + memcpy(&(p->paths[p->pathCount].address),&((*path)->address()),sizeof(struct sockaddr_storage)); p->paths[p->pathCount].lastSend = (*path)->lastOut(); p->paths[p->pathCount].lastReceive = (*path)->lastIn(); p->paths[p->pathCount].trustedPathId = RR->topology->getOutboundPathTrust((*path)->address()); |
