changeset 1642:507fd776b022

Remove MI_TYPE_CHAR, put 'try' block around H5Dopen in miget_scalar()
author bert <bert>
date Mon, 02 Feb 2004 01:33:45 +0000
parents 4614af4e1724
children 474dcde93f30
files libsrc2/m2util.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libsrc2/m2util.c
+++ b/libsrc2/m2util.c
@@ -25,9 +25,6 @@
     case MI_TYPE_BYTE:
 	type_id = H5Tcopy(H5T_NATIVE_SCHAR);
 	break;
-    case MI_TYPE_CHAR:
-	type_id = H5Tcopy(H5T_NATIVE_SCHAR);
-	break;
     case MI_TYPE_SHORT:
 	type_id = H5Tcopy(H5T_NATIVE_SHORT);
 	break;
@@ -1284,7 +1281,9 @@
     hid_t spc_id;
     int result = MI_ERROR;
 
-    dset_id = H5Dopen(loc_id, path);
+    H5E_BEGIN_TRY {
+        dset_id = H5Dopen(loc_id, path);
+    } H5E_END_TRY;
     if (dset_id >= 0) {
         spc_id = H5Dget_space(dset_id);
         if (spc_id >= 0) {