summaryrefslogtreecommitdiffstats
path: root/tools/src/h5perf/sio_engine.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 /tools/src/h5perf/sio_engine.c
parent58f3d6664e7a2af8d6b1813374ab02d72795a5e1 (diff)
downloadhdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.zip
hdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.tar.gz
hdf5-a87ca572fed15303ad36adcb6f2203f8297e8277.tar.bz2
Replaces HDgetenv with getenv (#3599)
Diffstat (limited to 'tools/src/h5perf/sio_engine.c')
-rw-r--r--tools/src/h5perf/sio_engine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/src/h5perf/sio_engine.c b/tools/src/h5perf/sio_engine.c
index 28f4eed..700416d 100644
--- a/tools/src/h5perf/sio_engine.c
+++ b/tools/src/h5perf/sio_engine.c
@@ -310,7 +310,7 @@ sio_create_filename(iotype iot, const char *base_name, char *fullname, size_t si
}
/* First use the environment variable and then try the constant */
- prefix = HDgetenv("HDF5_PREFIX");
+ prefix = getenv("HDF5_PREFIX");
#ifdef HDF5_PREFIX
if (!prefix)
@@ -324,8 +324,8 @@ sio_create_filename(iotype iot, const char *base_name, char *fullname, size_t si
* directory instead. */
char *user, *login, *subdir;
- user = HDgetenv("USER");
- login = HDgetenv("LOGIN");
+ user = getenv("USER");
+ login = getenv("LOGIN");
subdir = (user ? user : login);
if (subdir) {
@@ -1259,7 +1259,7 @@ do_cleanupfile(iotype iot, char *filename)
goto done;
if (clean_file_g == -1)
- clean_file_g = (HDgetenv(HDF5_NOCLEANUP) == NULL) ? 1 : 0;
+ clean_file_g = (getenv(HDF5_NOCLEANUP) == NULL) ? 1 : 0;
if (clean_file_g) {