From 81ab1a3f6cf41abe38498e1dd6671696479626b1 Mon Sep 17 00:00:00 2001 From: asvitkine <> Date: Thu, 1 Mar 2012 04:27:42 +0000 Subject: [PATCH] another warning fix --- BasiliskII/src/Unix/ether_unix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/Unix/ether_unix.cpp b/BasiliskII/src/Unix/ether_unix.cpp index 3e0f4a76..e6bd1fb9 100644 --- a/BasiliskII/src/Unix/ether_unix.cpp +++ b/BasiliskII/src/Unix/ether_unix.cpp @@ -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);