summaryrefslogtreecommitdiffstats
path: root/test/vol.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2023-09-26 20:11:22 (GMT)
committerGitHub <noreply@github.com>2023-09-26 20:11:22 (GMT)
commita87ca572fed15303ad36adcb6f2203f8297e8277 (patch)
tree88d481127b274229c2e3a21146015fab2c82aa0e /test/vol.c
parent58f3d6664e7a2af8d6b1813374ab02d72795a5e1 (diff)
downloadhdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.zip
hdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.tar.gz
hdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.tar.bz2
Replaces HDgetenv with getenv (#3599)
Diffstat (limited to 'test/vol.c')
-rw-r--r--test/vol.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/vol.c b/test/vol.c
index b8c1e03..43336c6 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -2093,7 +2093,7 @@ test_async_vol_props(void)
FAIL_STACK_ERROR;
/* Override possible environment variable & re-initialize default VOL connector */
- conn_env_str = HDgetenv(HDF5_VOL_CONNECTOR);
+ conn_env_str = getenv(HDF5_VOL_CONNECTOR);
if (conn_env_str) {
if (NULL == (conn_env_str = strdup(conn_env_str)))
TEST_ERROR;
@@ -2256,7 +2256,7 @@ test_vol_cap_flags(void)
TEST_ERROR;
/* If using the native VOL by default, check flags again with H5P_DEFAULT */
- vol_env = HDgetenv(HDF5_VOL_CONNECTOR);
+ vol_env = getenv(HDF5_VOL_CONNECTOR);
if (!vol_env || (0 == strcmp(vol_env, "native"))) {
H5VL_class_t *cls;
hid_t connector_id;
@@ -2338,8 +2338,8 @@ test_get_vol_name(void)
TESTING("getting connector name");
- conn_env_str = HDgetenv(HDF5_VOL_CONNECTOR);
- if (NULL == (conn_env_str = HDgetenv("HDF5_VOL_CONNECTOR")))
+ conn_env_str = getenv(HDF5_VOL_CONNECTOR);
+ if (NULL == (conn_env_str = getenv("HDF5_VOL_CONNECTOR")))
conn_env_str = "native";
/* Skip the connectors other than the native and pass_through connector */
@@ -2629,7 +2629,7 @@ main(void)
int nerrors = 0;
/* Get the VFD to use */
- env_h5_drvr = HDgetenv(HDF5_DRIVER);
+ env_h5_drvr = getenv(HDF5_DRIVER);
if (env_h5_drvr == NULL)
env_h5_drvr = "nomatch";