mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Remove unused variable
This commit is contained in:
parent
1b022a0d05
commit
38fe65f8bd
@ -252,7 +252,6 @@ int setSocketNonBlocking(SOCKET s, int val) {
|
|||||||
|
|
||||||
SOCKET createSocket(int addressFamily, int socketType, int protocol, int nonBlocking) {
|
SOCKET createSocket(int addressFamily, int socketType, int protocol, int nonBlocking) {
|
||||||
SOCKET s;
|
SOCKET s;
|
||||||
int val;
|
|
||||||
|
|
||||||
s = socket(addressFamily, socketType, protocol);
|
s = socket(addressFamily, socketType, protocol);
|
||||||
if (s == INVALID_SOCKET) {
|
if (s == INVALID_SOCKET) {
|
||||||
@ -261,9 +260,11 @@ SOCKET createSocket(int addressFamily, int socketType, int protocol, int nonBloc
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LC_DARWIN
|
#ifdef LC_DARWIN
|
||||||
// Disable SIGPIPE on iOS
|
{
|
||||||
val = 1;
|
// Disable SIGPIPE on iOS
|
||||||
setsockopt(s, SOL_SOCKET, SO_NOSIGPIPE, (char*)&val, sizeof(val));
|
int val = 1;
|
||||||
|
setsockopt(s, SOL_SOCKET, SO_NOSIGPIPE, (char*)&val, sizeof(val));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (nonBlocking) {
|
if (nonBlocking) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user