diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/iopipe.c | 7 | ||||
-rw-r--r-- | test/titerate.c | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/test/iopipe.c b/test/iopipe.c index 05694ae..aa76369 100644 --- a/test/iopipe.c +++ b/test/iopipe.c @@ -9,10 +9,13 @@ /* See H5private.h for how to include headers */ #undef NDEBUG #include "hdf5.h" + #ifdef H5_HAVE_WINSOCK_H #include <Winsock.h> -#endif /*Winsock.h includes windows.h, due to the different value of - WINVER, windows.h should be put before H5private.h. Kent yang 6/21/2001*/ +#endif + +/*Winsock.h includes windows.h, due to the different value of +WINVER, windows.h should be put before H5private.h. Kent yang 6/21/2001*/ #include "H5private.h" diff --git a/test/titerate.c b/test/titerate.c index ea80cf7..c4370f8 100644 --- a/test/titerate.c +++ b/test/titerate.c @@ -133,7 +133,7 @@ static void test_iter_group(void) CHECK(dataset, FAIL, "H5Dcreate"); /* Keep a copy of the dataset names around for later */ - dnames[i]=strdup(name); + dnames[i]=HDstrdup(name); CHECK(dnames[i], NULL, "strdup"); ret=H5Dclose(dataset); @@ -280,7 +280,7 @@ static void test_iter_attr(void) CHECK(attribute, FAIL, "H5Acreate"); /* Keep a copy of the attribute names around for later */ - anames[i]=strdup(name); + anames[i]=HDstrdup(name); CHECK(anames[i], NULL, "strdup"); ret=H5Aclose(attribute); |