Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libpthread beware of your shadow



details:   https://anonhg.NetBSD.org/src/rev/97e822dc80c7
branches:  trunk
changeset: 820958:97e822dc80c7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 16 19:07:06 2017 +0000

description:
beware of your shadow

diffstat:

 tests/lib/libpthread/h_common.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 2ae6053471b2 -r 97e822dc80c7 tests/lib/libpthread/h_common.h
--- a/tests/lib/libpthread/h_common.h   Mon Jan 16 17:43:04 2017 +0000
+++ b/tests/lib/libpthread/h_common.h   Mon Jan 16 19:07:06 2017 +0000
@@ -5,14 +5,14 @@
 
 #define PTHREAD_REQUIRE(x) \
     do { \
-        int ret = (x); \
-        ATF_REQUIRE_MSG(ret == 0, "%s: %s", #x, strerror(ret)); \
+        int _ret = (x); \
+        ATF_REQUIRE_MSG(_ret == 0, "%s: %s", #x, strerror(_ret)); \
     } while (0)
 
 #define PTHREAD_REQUIRE_STATUS(x, v) \
     do { \
-        int ret = (x); \
-        ATF_REQUIRE_MSG(ret == (v), "%s: %s", #x, strerror(ret)); \
+        int _ret = (x); \
+        ATF_REQUIRE_MSG(_ret == (v), "%s: %s", #x, strerror(_ret)); \
     } while (0)
 
 #endif // H_COMMON_H



Home | Main Index | Thread Index | Old Index