summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 13:32:40 (GMT)
committerGitHub <noreply@github.com>2023-06-29 13:32:40 (GMT)
commita90bdbbcfc6db6718d368fe7d0c570238e302bc7 (patch)
tree41e896d50e68458fa5cadddafeca80ef44c327e3 /test/h5test.c
parent651b20ccb7b83d5e9ef215594542cdb8119071a5 (diff)
downloadhdf5-a90bdbbcfc6db6718d368fe7d0c570238e302bc7.zip
hdf5-a90bdbbcfc6db6718d368fe7d0c570238e302bc7.tar.gz
hdf5-a90bdbbcfc6db6718d368fe7d0c570238e302bc7.tar.bz2
Remove HD from protected POSIX calls (#3203)
These calls are non-C99 but protected by ifdefs and have no Windows equivalents: * HDalarm * HDasprintf * HDclock_gettime * HDfcntl * HDgethostname * HDgetrusage * HDsymlink
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c
index a35d8bf..d7a4116 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -958,7 +958,7 @@ h5_show_hostname(void)
#endif
#ifdef H5_HAVE_GETHOSTNAME
- if (HDgethostname(hostname, (size_t)80) < 0)
+ if (gethostname(hostname, (size_t)80) < 0)
printf(" gethostname failed\n");
else
printf(" hostname=%s\n", hostname);