Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5832)

Unified Diff: base/eintr_wrapper.h

Issue 9460022: HANDLE_EINTR: parenthesize arguments (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/eintr_wrapper.h
===================================================================
--- base/eintr_wrapper.h (revision 127564)
+++ base/eintr_wrapper.h (working copy)
@@ -20,14 +20,14 @@
#define HANDLE_EINTR(x) ({ \
typeof(x) __eintr_result__; \
do { \
- __eintr_result__ = x; \
+ __eintr_result__ = (x); \
} while (__eintr_result__ == -1 && errno == EINTR); \
__eintr_result__;\
})
#else
-#define HANDLE_EINTR(x) x
+#define HANDLE_EINTR(x) (x)
#endif // OS_POSIX
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698