aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-09-27 18:25:37 +0200
committerThomas White <taw@physics.org>2012-09-27 18:25:37 +0200
commit46677edadd8e24bd7a3df30dc17a76606310fe5e (patch)
treed667235f46ffbd80a4a54c15c3138e63665db84d
parenteeed4db212112a83be14c7237810610b79d7246a (diff)
Formatting
-rw-r--r--libcrystfel/src/hdf5-file.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index af06c1b4..175b3708 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -767,26 +767,19 @@ char *hdfile_get_string_value(struct hdfile *f, const char *name)
switch ( class ) {
case H5T_FLOAT :
-
r = H5Dread(dh, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, &buf_f);
if ( r < 0 ) goto fail;
-
tmp = malloc(256);
snprintf(tmp, 255, "%f", buf_f);
-
return tmp;
case H5T_INTEGER :
-
-
r = H5Dread(dh, H5T_NATIVE_INT, H5S_ALL, H5S_ALL,
H5P_DEFAULT, &buf_i);
if ( r < 0 ) goto fail;
-
tmp = malloc(256);
snprintf(tmp, 255, "%d", buf_i);
-
return tmp;
default :