aboutsummaryrefslogtreecommitdiff
path: root/src/calibrate_detector.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-04-07 22:57:05 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:24 +0100
commit59cdff9a9ff865c814be5d484cf41f0f49523225 (patch)
treee361b0c88b508cf8bc93048b08a917713d708970 /src/calibrate_detector.c
parent9737b7579a3588341022ba60657731159e306a55 (diff)
Switch arguments to calloc()
Diffstat (limited to 'src/calibrate_detector.c')
-rw-r--r--src/calibrate_detector.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/calibrate_detector.c b/src/calibrate_detector.c
index 82580e16..020916d5 100644
--- a/src/calibrate_detector.c
+++ b/src/calibrate_detector.c
@@ -156,12 +156,12 @@ static void refine_xy(FILE *fh, struct image *image, int minpeaks,
int pi;
int nChunks;
- weightedSumFS = calloc(sizeof(double), image->det->n_panels);
- weightedSumSS = calloc(sizeof(double), image->det->n_panels);
- summedWeights = calloc(sizeof(double), image->det->n_panels);
- peaksFound = calloc(sizeof(int), image->det->n_panels);
- meanShiftFS = calloc(sizeof(double), image->det->n_panels);
- meanShiftSS = calloc(sizeof(double), image->det->n_panels);
+ weightedSumFS = calloc(image->det->n_panels, sizeof(double));
+ weightedSumSS = calloc(image->det->n_panels, sizeof(double));
+ summedWeights = calloc(image->det->n_panels, sizeof(double));
+ peaksFound = calloc(image->det->n_panels, sizeof(double));
+ meanShiftFS = calloc(image->det->n_panels, sizeof(double));
+ meanShiftSS = calloc(image->det->n_panels, sizeof(double));
/* Initialize arrays */
for (pi=0; pi<image->det->n_panels; pi++) {