mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-22 16:09:18 -04:00
Oups, missed some compile errors.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4310 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
209768a5ed
commit
a8c5e32d61
@ -273,7 +273,7 @@ int UdpRelayReceiver::addUdpRelay(UdpRelayAddrSet *addrSet, int relayClass)
|
||||
/* create UdpRelay */
|
||||
UdpRelayProxy udpRelay(addrSet, relayClass);
|
||||
UdpRelayAddrSet alt = addrSet->flippedSet();
|
||||
UdpRelayProxy altUdpRelay(alt, relayClass);
|
||||
UdpRelayProxy altUdpRelay(&alt, relayClass);
|
||||
|
||||
/* must install two (A, B) & (B, A) */
|
||||
mRelays[*addrSet] = udpRelay;
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "util/rsnet.h"
|
||||
#include "util/rsthreads.h"
|
||||
#include <string.h>
|
||||
#include <sstream>
|
||||
|
||||
#ifdef WINDOWS_SYS
|
||||
#else
|
||||
@ -147,7 +148,7 @@ std::ostream &operator<<(std::ostream &out, const struct sockaddr_in &addr)
|
||||
std::string rs_inet_ntoa(struct in_addr in)
|
||||
{
|
||||
std::ostringstream str;
|
||||
uint8_t *bytes = &(in.s_addr);
|
||||
uint8_t *bytes = (uint8_t *) &(in.s_addr);
|
||||
str << (int) bytes[0] << ".";
|
||||
str << (int) bytes[1] << ".";
|
||||
str << (int) bytes[2] << ".";
|
||||
|
Loading…
x
Reference in New Issue
Block a user