mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-20 00:31:28 +00:00
fix cross-block initializer
This commit is contained in:
parent
cafa8c8c89
commit
b80e9651f5
@ -222,7 +222,7 @@ static bool execute_network_script(const char *action)
|
||||
|
||||
bool ether_init(void)
|
||||
{
|
||||
int nonblock = 1;
|
||||
int val, nonblock = 1;
|
||||
char str[256];
|
||||
|
||||
// Do nothing if no Ethernet device specified
|
||||
@ -340,7 +340,7 @@ bool ether_init(void)
|
||||
goto open_error;
|
||||
}
|
||||
#else
|
||||
int val = fcntl(fd, F_GETFL, 0);
|
||||
val = fcntl(fd, F_GETFL, 0);
|
||||
if (val < 0 || fcntl(fd, F_SETFL, val | O_NONBLOCK) < 0) {
|
||||
sprintf(str, GetString(STR_BLOCKING_NET_SOCKET_WARN), strerror(errno));
|
||||
WarningAlert(str);
|
||||
|
Loading…
Reference in New Issue
Block a user