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/33f2ba972d2f
branches: trunk
changeset: 350707:33f2ba972d2f
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 86f22fc329ed -r 33f2ba972d2f 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