mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-23 04:33:24 +00:00
another warning fix
This commit is contained in:
parent
c13fd620a1
commit
81ab1a3f6c
@ -225,7 +225,7 @@ static bool execute_network_script(const char *action)
|
||||
|
||||
bool ether_init(void)
|
||||
{
|
||||
int val, nonblock = 1;
|
||||
int val;
|
||||
char str[256];
|
||||
|
||||
// Do nothing if no Ethernet device specified
|
||||
@ -347,6 +347,7 @@ bool ether_init(void)
|
||||
|
||||
// Set nonblocking I/O
|
||||
#ifdef USE_FIONBIO
|
||||
int nonblock = 1;
|
||||
if (ioctl(fd, FIONBIO, &nonblock) < 0) {
|
||||
sprintf(str, GetString(STR_BLOCKING_NET_SOCKET_WARN), strerror(errno));
|
||||
WarningAlert(str);
|
||||
|
Loading…
Reference in New Issue
Block a user