diff options
author | Thomas White <taw@physics.org> | 2021-07-21 13:26:37 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-21 15:34:33 +0200 |
commit | 7e5536832b22036a634a74e16073b4762a416e29 (patch) | |
tree | 25799eb139d235f524a80c53fb25d0c9f64eb6f1 /libcrystfel/src/cell-utils.c | |
parent | 760f17f56b7f79f67a9029cbe7cc55a0acccd3b9 (diff) |
Reduce variable scope where possible
Diffstat (limited to 'libcrystfel/src/cell-utils.c')
-rw-r--r-- | libcrystfel/src/cell-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c index 2f3dfc6b..cdd4156b 100644 --- a/libcrystfel/src/cell-utils.c +++ b/libcrystfel/src/cell-utils.c @@ -1220,7 +1220,6 @@ int cell_is_sensible(UnitCell *cell) int validate_cell(UnitCell *cell) { int err = 0; - char cen, ua; if ( cell_has_parameters(cell) && !cell_is_sensible(cell) ) { ERROR("WARNING: Unit cell parameters are not sensible.\n"); @@ -1241,6 +1240,7 @@ int validate_cell(UnitCell *cell) /* For monoclinic A, B or C centering, the unique axis must be something * other than the centering. */ if ( cell_get_lattice_type(cell) == L_MONOCLINIC ) { + char cen, ua; cen = cell_get_centering(cell); ua = cell_get_unique_axis(cell); if ( ((cen == 'A') && (ua == 'a')) |