summaryrefslogtreecommitdiffstats
path: root/tools/test/h5jam
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/h5jam')
-rw-r--r--tools/test/h5jam/getub.c6
-rw-r--r--tools/test/h5jam/h5jamgentest.c8
-rw-r--r--tools/test/h5jam/tellub.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/tools/test/h5jam/getub.c b/tools/test/h5jam/getub.c
index b90ddeb..8878a69 100644
--- a/tools/test/h5jam/getub.c
+++ b/tools/test/h5jam/getub.c
@@ -59,7 +59,7 @@ parse_command_line(int argc, const char *const *argv)
while ((opt = H5_get_option(argc, argv, s_opts, l_opts)) != EOF) {
switch ((char)opt) {
case 'c':
- nbytes = HDstrdup(H5_optarg);
+ nbytes = strdup(H5_optarg);
break;
case '?':
default:
@@ -105,10 +105,10 @@ main(int argc, char *argv[])
goto error;
} /* end if */
- filename = HDstrdup(argv[H5_optind]);
+ filename = strdup(argv[H5_optind]);
size = 0;
- if (EOF == (res = HDsscanf(nbytes, "%u", &size))) {
+ if (EOF == (res = sscanf(nbytes, "%u", &size))) {
/* fail */
error_msg("missing file name\n");
usage(h5tools_getprogname());
diff --git a/tools/test/h5jam/h5jamgentest.c b/tools/test/h5jam/h5jamgentest.c
index d3b7388..0ab29c3 100644
--- a/tools/test/h5jam/h5jamgentest.c
+++ b/tools/test/h5jam/h5jamgentest.c
@@ -151,7 +151,7 @@ gent_ub(const char *filename, size_t ub_size, size_t ub_fill)
goto error;
if ((attr = H5Acreate2(group, "attr1", H5T_STD_I8BE, space, H5P_DEFAULT, H5P_DEFAULT)) < 0)
goto error;
- if (HDsnprintf(buf, sizeof(buf), "abcdefghi") < 0)
+ if (snprintf(buf, sizeof(buf), "abcdefghi") < 0)
goto error;
if (H5Awrite(attr, H5T_NATIVE_SCHAR, buf) < 0)
goto error;
@@ -205,7 +205,7 @@ gent_ub(const char *filename, size_t ub_size, size_t ub_fill)
goto error;
if ((attr = H5Acreate2(dataset, "attr1", H5T_STD_I8BE, space, H5P_DEFAULT, H5P_DEFAULT)) < 0)
goto error;
- if (HDsnprintf(buf, sizeof(buf), "1st attribute of dset1.1.1") < 0)
+ if (snprintf(buf, sizeof(buf), "1st attribute of dset1.1.1") < 0)
goto error;
if (H5Awrite(attr, H5T_NATIVE_SCHAR, buf) < 0)
goto error;
@@ -219,7 +219,7 @@ gent_ub(const char *filename, size_t ub_size, size_t ub_fill)
goto error;
if ((attr = H5Acreate2(dataset, "attr2", H5T_STD_I8BE, space, H5P_DEFAULT, H5P_DEFAULT)) < 0)
goto error;
- if (HDsnprintf(buf, sizeof(buf), "2nd attribute of dset1.1.1") < 0)
+ if (snprintf(buf, sizeof(buf), "2nd attribute of dset1.1.1") < 0)
goto error;
if (H5Awrite(attr, H5T_NATIVE_SCHAR, buf) < 0)
goto error;
@@ -412,7 +412,7 @@ main(void)
if (gent_ub(FILE7, 0, 0) < 0)
goto error;
- if (gent_ub(FILE8, 512, HDstrlen(pattern)) < 0)
+ if (gent_ub(FILE8, 512, strlen(pattern)) < 0)
goto error;
if (gent_ub(FILE9, 1024, 513) < 0)
goto error;
diff --git a/tools/test/h5jam/tellub.c b/tools/test/h5jam/tellub.c
index 501ecc5..61ea896 100644
--- a/tools/test/h5jam/tellub.c
+++ b/tools/test/h5jam/tellub.c
@@ -124,7 +124,7 @@ main(int argc, char *argv[])
goto done;
}
- ifname = HDstrdup(argv[H5_optind]);
+ ifname = strdup(argv[H5_optind]);
testval = H5Fis_accessible(ifname, H5P_DEFAULT);