From e7894a86c752d39968c24d6ff063470be16d9241 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 7 Jul 2004 19:18:26 +0000 Subject: [PATCH] fix warning --- stepmania/src/ezsockets.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ezsockets.cpp b/stepmania/src/ezsockets.cpp index 8c2566e1a5..31a5145a2b 100644 --- a/stepmania/src/ezsockets.cpp +++ b/stepmania/src/ezsockets.cpp @@ -178,6 +178,7 @@ bool EzSockets::CanRead() return select(sock+1, scks, NULL, NULL, times) > 0; } + bool EzSockets::IsError() { if (state == skERROR) @@ -186,7 +187,9 @@ bool EzSockets::IsError() FD_ZERO(scks); FD_SET((unsigned)sock,scks); - return select(sock+1, NULL, NULL, scks, times); + /* What is this trying to do? Errors are returned by read/write functions, not via + * the select() exception field. */ + return !!select(sock+1, NULL, NULL, scks, times); } bool EzSockets::CanWrite() {