Fix const.

This commit is contained in:
Matthew Parlane 2013-08-28 00:05:43 +12:00
parent eebcea9174
commit 6748d5d087
2 changed files with 4 additions and 4 deletions

View File

@ -618,14 +618,14 @@ void WiiSockMan::EnqueueReply(u32 CommandAddress, s32 ReturnValue)
}
void WiiSockMan::Convert(WiiSockAddrIn& from, sockaddr_in& to)
void WiiSockMan::Convert(WiiSockAddrIn const & from, sockaddr_in& to)
{
to.sin_addr.s_addr = from.addr.addr;
to.sin_family = from.family;
to.sin_port = from.port;
}
void WiiSockMan::Convert(sockaddr_in& from, WiiSockAddrIn& to, s32 addrlen)
void WiiSockMan::Convert(sockaddr_in const & from, WiiSockAddrIn& to, s32 addrlen)
{
to.addr.addr = from.sin_addr.s_addr;
to.family = from.sin_family;

View File

@ -206,8 +206,8 @@ public:
}
void Update();
static void EnqueueReply(u32 CommandAddress, s32 ReturnValue);
static void Convert(WiiSockAddrIn& const from, sockaddr_in& to);
static void Convert(sockaddr_in& const from, WiiSockAddrIn& to, s32 addrlen=-1);
static void Convert(WiiSockAddrIn const & from, sockaddr_in& to);
static void Convert(sockaddr_in const & from, WiiSockAddrIn& to, s32 addrlen=-1);
// NON-BLOCKING FUNCTIONS
s32 newSocket(s32 af, s32 type, s32 protocol);
s32 delSocket(s32 s);