From 346d484df6d30d27072a3fb881fcc36705505197 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 23 Oct 2014 13:25:51 +0200 Subject: Formatting --- libcrystfel/src/hdf5-file.c | 5 +++-- src/dw-hdfsee.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 4269216c..a0df1fbe 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -106,7 +106,8 @@ struct hdfile *hdfile_open(const char *filename) if ( f == NULL ) return NULL; if ( access( filename, R_OK ) == -1 ) { - ERROR("File does not exists or it cannot be read: %s\n", filename); + ERROR("File does not exists or it cannot be read: %s\n", + filename); free(f); return NULL; } @@ -922,7 +923,7 @@ void fill_in_beam_parameters(struct beam_params *beam, struct hdfile *f, } - image->lambda = ph_en_to_lambda(eV_to_J(eV)) * beam->photon_energy_scale; + image->lambda = ph_en_to_lambda(eV_to_J(eV))*beam->photon_energy_scale; } diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index d33ffe66..c81da1d5 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -2484,7 +2484,7 @@ DisplayWindow *displaywindow_open(char *filename, const char *peaks, } else { check = hdf5_read(dw->hdfile, dw->image, element, 0); } - if (check) { + if ( check ) { ERROR("Couldn't load file\n"); free(dw); hdfile_close(dw->hdfile); -- cgit v1.2.3