Fix const.
This commit is contained in:
parent
eebcea9174
commit
6748d5d087
|
@ -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_addr.s_addr = from.addr.addr;
|
||||||
to.sin_family = from.family;
|
to.sin_family = from.family;
|
||||||
to.sin_port = from.port;
|
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.addr.addr = from.sin_addr.s_addr;
|
||||||
to.family = from.sin_family;
|
to.family = from.sin_family;
|
||||||
|
|
|
@ -206,8 +206,8 @@ public:
|
||||||
}
|
}
|
||||||
void Update();
|
void Update();
|
||||||
static void EnqueueReply(u32 CommandAddress, s32 ReturnValue);
|
static void EnqueueReply(u32 CommandAddress, s32 ReturnValue);
|
||||||
static void Convert(WiiSockAddrIn& const from, sockaddr_in& to);
|
static void Convert(WiiSockAddrIn const & from, sockaddr_in& to);
|
||||||
static void Convert(sockaddr_in& const from, WiiSockAddrIn& to, s32 addrlen=-1);
|
static void Convert(sockaddr_in const & from, WiiSockAddrIn& to, s32 addrlen=-1);
|
||||||
// NON-BLOCKING FUNCTIONS
|
// NON-BLOCKING FUNCTIONS
|
||||||
s32 newSocket(s32 af, s32 type, s32 protocol);
|
s32 newSocket(s32 af, s32 type, s32 protocol);
|
||||||
s32 delSocket(s32 s);
|
s32 delSocket(s32 s);
|
||||||
|
|
Loading…
Reference in New Issue