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:
drbob 2011-06-20 18:26:07 +00:00
parent 209768a5ed
commit a8c5e32d61
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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] << ".";