summaryrefslogtreecommitdiffstats
path: root/tools/test/misc/talign.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-05-24 20:00:51 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-05-24 20:00:51 (GMT)
commit635e8c5377ded6201061e1dc819526cd205f06ed (patch)
tree92ecc34bdaa14424f41713b9fa14f5515eacd239 /tools/test/misc/talign.c
parent206c4a43e848f51060c2b631ec020cf1ee3f02ba (diff)
downloadhdf5-635e8c5377ded6201061e1dc819526cd205f06ed.zip
hdf5-635e8c5377ded6201061e1dc819526cd205f06ed.tar.gz
hdf5-635e8c5377ded6201061e1dc819526cd205f06ed.tar.bz2
merge from develop and apply HDFFV-8611
Diffstat (limited to 'tools/test/misc/talign.c')
-rw-r--r--tools/test/misc/talign.c39
1 files changed, 3 insertions, 36 deletions
diff --git a/tools/test/misc/talign.c b/tools/test/misc/talign.c
index 7ca1f92..9a72557 100644
--- a/tools/test/misc/talign.c
+++ b/tools/test/misc/talign.c
@@ -17,7 +17,7 @@
*/
#include <string.h>
#include <stdlib.h>
-/*#include <unistd.h> *//* Required for unlink() */
+/*#include <unistd.h> *//* Required for unlink() */
#include "hdf5.h"
#include "H5private.h"
@@ -86,8 +86,7 @@ int main(void)
H5Tinsert(cmp, "Not Ok", sizeof(fok) + sizeof(string5), array_dt);
H5Tclose(array_dt);
- fix = h5tools_get_native_type(cmp);
-
+ fix = H5Tget_native_type(cmp, H5T_DIR_DEFAULT);
cmp1 = H5Tcreate(H5T_COMPOUND, sizeof(fok));
cdim[0] = sizeof(fok) / sizeof(float);
@@ -106,7 +105,7 @@ int main(void)
H5Tclose(array_dt);
plist = H5Pcreate(H5P_DATASET_XFER);
- if((error = H5Pset_preserve(plist, 1)) < 0)
+ if((error = H5Pset_preserve(plist, 1)) < 0)
goto out;
/*
@@ -208,35 +207,3 @@ out:
return result;
}
-/*-------------------------------------------------------------------------
- * Function: h5tools_get_native_type
- *
- * Purpose: Wrapper around H5Tget_native_type() to work around
- * Problems with bitfields.
- *
- * Return: Success: datatype ID
- *
- * Failure: FAIL
- *
- * Programmer: Quincey Koziol
- * Tuesday, October 5, 2004
- *
- * Modifications:
- *
- *-------------------------------------------------------------------------
- */
-hid_t
-h5tools_get_native_type(hid_t type)
-{
- hid_t p_type;
- H5T_class_t type_class;
-
- type_class = H5Tget_class(type);
- if(type_class==H5T_BITFIELD)
- p_type=H5Tcopy(type);
- else
- p_type = H5Tget_native_type(type,H5T_DIR_DEFAULT);
-
- return(p_type);
-}
-