Mercurial > hg > octave-nkf
diff src/ls-hdf5.h @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | cda4aa780d58 |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/src/ls-hdf5.h +++ b/src/ls-hdf5.h @@ -57,7 +57,7 @@ if (mode & std::ios::app && H5Fis_hdf5 (name) > 0) file_id = H5Fopen (name, H5F_ACC_RDWR, H5P_DEFAULT); else - file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, + file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); } if (file_id < 0) @@ -67,7 +67,7 @@ } void close () - { + { if (file_id >= 0) { if (H5Fclose (file_id) < 0) @@ -87,7 +87,7 @@ if (mode & std::ios::app && H5Fis_hdf5 (name) > 0) file_id = H5Fopen (name, H5F_ACC_RDWR, H5P_DEFAULT); else - file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, + file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); } if (file_id < 0) @@ -199,7 +199,7 @@ extern OCTINTERP_API herr_t -hdf5_add_scalar_attr (hid_t loc_id, hid_t type_id, +hdf5_add_scalar_attr (hid_t loc_id, hid_t type_id, const char *attr_name, void *buf); #ifdef IDX_TYPE_LONG