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/indexers/felix.c | |
parent | 760f17f56b7f79f67a9029cbe7cc55a0acccd3b9 (diff) |
Reduce variable scope where possible
Diffstat (limited to 'libcrystfel/src/indexers/felix.c')
-rw-r--r-- | libcrystfel/src/indexers/felix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/indexers/felix.c b/libcrystfel/src/indexers/felix.c index b7d2a8a3..db7da8c4 100644 --- a/libcrystfel/src/indexers/felix.c +++ b/libcrystfel/src/indexers/felix.c @@ -131,7 +131,6 @@ static int read_felix(struct felix_private *gp, struct image *image, float mean_ia; int ngv; char line[1024]; - int r; int n_crystals = 0; fh = fopen(filename, "r"); @@ -151,6 +150,7 @@ static int read_felix(struct felix_private *gp, struct image *image, Crystal *cr; UnitCell *cell; + int r; /* One line per grain */ if ( fgets( line, 1024, fh ) == NULL ) { |