mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-06 16:09:43 +00:00
Merge pull request #7180 from lioncash/assign
sceNetAdhoc: Remove unnecessary assignments
This commit is contained in:
commit
4cdba8da6e
@ -305,8 +305,7 @@ static int sceNetAdhocPdpCreate(const char *mac, u32 port, int bufferSize, u32 u
|
|||||||
//return ERROR_NET_ADHOC_PORT_IN_USE;
|
//return ERROR_NET_ADHOC_PORT_IN_USE;
|
||||||
|
|
||||||
// Create Internet UDP Socket
|
// Create Internet UDP Socket
|
||||||
int usocket = (int)INVALID_SOCKET;
|
int usocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||||
usocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
|
||||||
// Valid Socket produced
|
// Valid Socket produced
|
||||||
if (usocket != INVALID_SOCKET) {
|
if (usocket != INVALID_SOCKET) {
|
||||||
// Enable Port Re-use
|
// Enable Port Re-use
|
||||||
@ -1399,8 +1398,7 @@ static int sceNetAdhocPtpOpen(const char *srcmac, int sport, const char *dstmac,
|
|||||||
// Valid Arguments
|
// Valid Arguments
|
||||||
if (bufsize > 0 && rexmt_int > 0 && rexmt_cnt > 0) {
|
if (bufsize > 0 && rexmt_int > 0 && rexmt_cnt > 0) {
|
||||||
// Create Infrastructure Socket
|
// Create Infrastructure Socket
|
||||||
int tcpsocket = (int)INVALID_SOCKET;
|
int tcpsocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||||
tcpsocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
|
||||||
|
|
||||||
// Valid Socket produced
|
// Valid Socket produced
|
||||||
if (tcpsocket > 0) {
|
if (tcpsocket > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user