mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-16 01:47:17 -05:00
removed aliasign problem that breaks compilation on gentoo
This commit is contained in:
parent
22d4893721
commit
3025f4d485
@ -289,7 +289,11 @@ void p3turtle::locked_addDistantPeer(const TurtleFileHash&,TurtleTunnelId tid)
|
|||||||
unsigned char tmp[RsPeerId::SIZE_IN_BYTES] ;
|
unsigned char tmp[RsPeerId::SIZE_IN_BYTES] ;
|
||||||
memset(tmp,0,RsPeerId::SIZE_IN_BYTES) ;
|
memset(tmp,0,RsPeerId::SIZE_IN_BYTES) ;
|
||||||
|
|
||||||
((uint32_t*)tmp)[0] = tid ;
|
assert(sizeof(tid) == 4) ;
|
||||||
|
|
||||||
|
for(int i=0;i<4;++i)
|
||||||
|
tmp[i] = uint8_t( (tid >> ((3-i)*8)) & 0xff ) ;
|
||||||
|
|
||||||
RsPeerId virtual_peer_id(tmp) ;
|
RsPeerId virtual_peer_id(tmp) ;
|
||||||
|
|
||||||
_virtual_peers[virtual_peer_id] = tid ;
|
_virtual_peers[virtual_peer_id] = tid ;
|
||||||
|
Loading…
Reference in New Issue
Block a user