[Swift-commit] cog r3988
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Thu Jun 26 13:20:04 CDT 2014
------------------------------------------------------------------------
r3988 | timgarmstrong | 2014-06-26 13:18:10 -0500 (Thu, 26 Jun 2014) | 1 line
Add parentheses to comparison as suggested by warning
------------------------------------------------------------------------
Index: modules/provider-coaster-c-client/src/CoasterClient.cpp
===================================================================
--- modules/provider-coaster-c-client/src/CoasterClient.cpp (revision 3987)
+++ modules/provider-coaster-c-client/src/CoasterClient.cpp (working copy)
@@ -94,7 +94,7 @@
// configure non-blocking
int flags = fcntl(sockFD, F_GETFL);
- if (flags & O_NONBLOCK == 0) {
+ if ((flags & O_NONBLOCK) == 0) {
if (fcntl(sockFD, F_SETFL, flags | O_NONBLOCK) < 0) {
throw CoasterError("Failed to configure socket for non-blocking operations: %s", strerror(errno));
}
Index: modules/provider-coaster-c-client/src/CoasterClientTest.cpp
===================================================================
--- modules/provider-coaster-c-client/src/CoasterClientTest.cpp (revision 3987)
+++ modules/provider-coaster-c-client/src/CoasterClientTest.cpp (working copy)
@@ -11,6 +11,7 @@
using std::cerr;
using std::cout;
+using std::endl;
using std::exception;
using std::list;
More information about the Swift-commit
mailing list