summaryrefslogtreecommitdiffstats
path: root/test/ttsafe.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/ttsafe.c')
-rw-r--r--test/ttsafe.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/ttsafe.c b/test/ttsafe.c
index 2f792f5..6fe14fc 100644
--- a/test/ttsafe.c
+++ b/test/ttsafe.c
@@ -53,15 +53,15 @@ num_digits(int num)
void
tts_is_threadsafe(void)
{
- hbool_t is_ts;
- hbool_t should_be;
+ bool is_ts;
+ bool should_be;
#ifdef H5_HAVE_THREADSAFE
- is_ts = FALSE;
- should_be = TRUE;
+ is_ts = false;
+ should_be = true;
#else /* H5_HAVE_THREADSAFE */
- is_ts = TRUE;
- should_be = FALSE;
+ is_ts = true;
+ should_be = false;
#endif /* H5_HAVE_THREADSAFE */
if (H5is_library_threadsafe(&is_ts) != SUCCEED)
@@ -81,7 +81,7 @@ gen_name(int value)
length = num_digits(MAX_NUM_NAME - 1);
temp = (char *)malloc(NAME_OFFSET + length + 1);
- temp = HDstrcpy(temp, "attrib");
+ temp = strcpy(temp, "attrib");
temp[NAME_OFFSET + length] = '\0';
for (i = (int)(length - 1); i >= 0; i--) {
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
TestSummary();
/* Clean up test files, if allowed */
- if (GetTestCleanup() && !HDgetenv(HDF5_NOCLEANUP))
+ if (GetTestCleanup() && !getenv(HDF5_NOCLEANUP))
TestCleanup();
/* Release test infrastructure */