From 76a715ee8c8c8ace5a341d81ca39dd1747886187 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 16 Jan 2014 18:51:16 -0200 Subject: Fix order of calloc arguments. (Patch by Dawid Gajownik) --- Affinity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Affinity.c') diff --git a/Affinity.c b/Affinity.c index ce30aed3..3b1e311a 100644 --- a/Affinity.c +++ b/Affinity.c @@ -20,9 +20,9 @@ typedef struct Affinity_ { }*/ Affinity* Affinity_new() { - Affinity* this = calloc(sizeof(Affinity), 1); + Affinity* this = calloc(1, sizeof(Affinity)); this->size = 8; - this->cpus = calloc(sizeof(int), this->size); + this->cpus = calloc(this->size, sizeof(int)); return this; } -- cgit v1.2.3