summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/eintr_wrapper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/eintr_wrapper.h b/base/eintr_wrapper.h
index 191c2a7..3d52760 100644
--- a/base/eintr_wrapper.h
+++ b/base/eintr_wrapper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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