summaryrefslogtreecommitdiff
path: root/native/target
diff options
context:
space:
mode:
authorSven de Marothy <sven@physto.se>2006-05-15 23:20:52 +0000
committerSven de Marothy <sven@physto.se>2006-05-15 23:20:52 +0000
commit0578ffe0ed0d20c9d08e880572d0c87ea0431011 (patch)
tree0420795887b1dc522ad4b4d141095926f3e3debe /native/target
parent257429863d155c30a305f49b492a20ef102826ad (diff)
downloadclasspath-0578ffe0ed0d20c9d08e880572d0c87ea0431011.tar.gz
2006-05-15 Sven de Marothy <sven@physto.se>
* native/target/generic/target_generic_network.h: Add a pair of parenthesis.
Diffstat (limited to 'native/target')
-rw-r--r--native/target/generic/target_generic_network.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/target/generic/target_generic_network.h b/native/target/generic/target_generic_network.h
index 9bb7002e2..99bb5d765 100644
--- a/native/target/generic/target_generic_network.h
+++ b/native/target/generic/target_generic_network.h
@@ -682,8 +682,8 @@ Systems : all
\
__value.tv_sec = flag / 1000; \
__value.tv_usec = (flag % 1000) * 1000; \
- result = ( setsockopt(socketDescriptor, SOL_SOCKET, SO_SNDTIMEO, &__value, sizeof(__value)) | \
- setsockopt(socketDescriptor, SOL_SOCKET, SO_RCVTIMEO, &__value, sizeof(__value)) == 0) ? TARGET_NATIVE_OK : TARGET_NATIVE_ERROR; \
+ result = ( (setsockopt(socketDescriptor, SOL_SOCKET, SO_SNDTIMEO, &__value, sizeof(__value)) | \
+ setsockopt(socketDescriptor, SOL_SOCKET, SO_RCVTIMEO, &__value, sizeof(__value))) == 0) ? TARGET_NATIVE_OK : TARGET_NATIVE_ERROR; \
} while (0)
#endif