aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-10-23 13:25:51 +0200
committerThomas White <taw@physics.org>2014-10-23 17:02:33 +0200
commit346d484df6d30d27072a3fb881fcc36705505197 (patch)
treedfc202ec74899d47be2454859777d9c0c322baaf
parent31831ec21fb3a3d080f4d48c86853d78f7a1d592 (diff)
Formatting
-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);