summaryrefslogtreecommitdiffstats
path: root/testpar/t_subfiling_vfd.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 /testpar/t_subfiling_vfd.c
parent58f3d6664e7a2af8d6b1813374ab02d72795a5e1 (diff)
downloadhdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.zip
hdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.tar.gz
hdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.tar.bz2
Replaces HDgetenv with getenv (#3599)
Diffstat (limited to 'testpar/t_subfiling_vfd.c')
-rw-r--r--testpar/t_subfiling_vfd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testpar/t_subfiling_vfd.c b/testpar/t_subfiling_vfd.c
index 7d0665d..bdabdf6 100644
--- a/testpar/t_subfiling_vfd.c
+++ b/testpar/t_subfiling_vfd.c
@@ -2072,13 +2072,13 @@ parse_subfiling_env_vars(void)
{
char *env_value;
- if (NULL != (env_value = HDgetenv(H5FD_SUBFILING_STRIPE_SIZE))) {
+ if (NULL != (env_value = getenv(H5FD_SUBFILING_STRIPE_SIZE))) {
stripe_size_g = strtoll(env_value, NULL, 0);
if ((ERANGE == errno) || (stripe_size_g <= 0))
stripe_size_g = -1;
}
- if (NULL != (env_value = HDgetenv(H5FD_SUBFILING_IOC_PER_NODE))) {
+ if (NULL != (env_value = getenv(H5FD_SUBFILING_IOC_PER_NODE))) {
ioc_per_node_g = strtol(env_value, NULL, 0);
if ((ERANGE == errno) || (ioc_per_node_g <= 0))
ioc_per_node_g = -1;
@@ -2092,13 +2092,13 @@ parse_subfiling_env_vars(void)
ioc_per_node_g = node_local_size;
}
- if (NULL != (env_value = HDgetenv(H5FD_IOC_THREAD_POOL_SIZE))) {
+ if (NULL != (env_value = getenv(H5FD_IOC_THREAD_POOL_SIZE))) {
ioc_thread_pool_size_g = atoi(env_value);
if (ioc_thread_pool_size_g <= 0)
ioc_thread_pool_size_g = -1;
}
- if (NULL != (env_value = HDgetenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX))) {
+ if (NULL != (env_value = getenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX))) {
assert(config_dir);
strncpy(config_dir, env_value, PATH_MAX);
@@ -2347,7 +2347,7 @@ main(int argc, char **argv)
must_unset_ioc_thread_count_env = true;
}
- if (!(env_value = HDgetenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX))) {
+ if (!(env_value = getenv(H5FD_SUBFILING_CONFIG_FILE_PREFIX))) {
int rand_value = 0;
if (MAINPROCESS)