aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/hdf5-file.c5
-rw-r--r--src/dw-hdfsee.c2
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);