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/stream.c | |
parent | 760f17f56b7f79f67a9029cbe7cc55a0acccd3b9 (diff) |
Reduce variable scope where possible
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 8ffaed1a..6c716fda 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -242,7 +242,6 @@ static RefList *read_stream_reflections_2_3(Stream *st) float intensity, sigma, fs, ss, pk, bg; char pn[32]; int r; - Reflection *refl; rval = fgets(line, 1023, st->fh); st->ln++; @@ -264,6 +263,7 @@ static RefList *read_stream_reflections_2_3(Stream *st) if ( r == 10 ) { + Reflection *refl; refl = add_refl(out, h, k, l); if ( refl == NULL ) { ERROR("Failed to add reflection\n"); @@ -313,7 +313,6 @@ static RefList *read_stream_reflections_2_1(Stream *st) char phs[1024]; int cts; int r; - Reflection *refl; rval = fgets(line, 1023, st->fh); st->ln++; @@ -333,6 +332,7 @@ static RefList *read_stream_reflections_2_1(Stream *st) first = 0; if ( r == 9 ) { + Reflection *refl; double ph; char *v; @@ -388,7 +388,6 @@ static RefList *read_stream_reflections_2_2(Stream *st) signed int h, k, l; float intensity, sigma, fs, ss, pk, bg; int r; - Reflection *refl; rval = fgets(line, 1023, st->fh); st->ln++; @@ -407,6 +406,7 @@ static RefList *read_stream_reflections_2_2(Stream *st) first = 0; if ( r == 9 ) { + Reflection *refl; refl = add_refl(out, h, k, l); if ( refl == NULL ) { ERROR("Failed to add reflection\n"); |