aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-05-28 17:19:29 +0200
committerThomas White <taw@physics.org>2010-05-28 17:19:29 +0200
commit7e7fc77f5c1ddc68c7f918efc12e684f110eb2cd (patch)
tree2d89003731f97bbd6810e033f97241eb6339ac6e /src/diffraction.c
parentd5899847b31eaaffd676f23dbc3538f06cc2faec (diff)
Remove unnecessary stuff
Diffstat (limited to 'src/diffraction.c')
-rw-r--r--src/diffraction.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index 8b245589..b3e80e8f 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -240,8 +240,8 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys,
{
struct rvec q;
float twotheta, r, az;
- float rx = 0.0;
- float ry = 0.0;
+ float rx;
+ float ry;
struct panel *p;
const unsigned int x = xs / sampling;
@@ -269,9 +269,7 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys,
double get_tt(struct image *image, unsigned int xs, unsigned int ys)
{
- float r;
- float rx = 0.0;
- float ry = 0.0;
+ float r, rx, ry;
struct panel *p;
const unsigned int x = xs;