diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-04-07 22:57:05 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:24 +0100 |
commit | 59cdff9a9ff865c814be5d484cf41f0f49523225 (patch) | |
tree | e361b0c88b508cf8bc93048b08a917713d708970 /src/calibrate_detector.c | |
parent | 9737b7579a3588341022ba60657731159e306a55 (diff) |
Switch arguments to calloc()
Diffstat (limited to 'src/calibrate_detector.c')
-rw-r--r-- | src/calibrate_detector.c | 12 |
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++) { |