From 1c47632400cebf04f1ef7a7e2480e414ce65ab46 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Mar 2012 16:30:18 +0100 Subject: Remove unnecessary max_size --- libcrystfel/src/hdf5-file.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 206e6295..9b21c444 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -236,7 +236,6 @@ int hdf5_write(const char *filename, const void *data, hid_t ph; /* Property list */ herr_t r; hsize_t size[2]; - hsize_t max_size[2]; fh = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); if ( fh < 0 ) { @@ -255,9 +254,7 @@ int hdf5_write(const char *filename, const void *data, * "C versus Fortran Dataspaces", of the HDF5 user's guide. */ size[0] = height; size[1] = width; - max_size[0] = height; - max_size[1] = width; - sh = H5Screate_simple(2, size, max_size); + sh = H5Screate_simple(2, size, NULL); /* Set compression */ ph = H5Pcreate(H5P_DATASET_CREATE); @@ -273,7 +270,7 @@ int hdf5_write(const char *filename, const void *data, } /* Muppet check */ - H5Sget_simple_extent_dims(sh, size, max_size); + H5Sget_simple_extent_dims(sh, size, NULL); r = H5Dwrite(dh, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, data); -- cgit v1.2.3