diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-16 18:51:16 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-16 18:51:16 -0200 |
commit | 76a715ee8c8c8ace5a341d81ca39dd1747886187 (patch) | |
tree | 827aed752113618de0b2ba09ed0bb3edc0a9968a /Affinity.c | |
parent | c1e0f6e17c16236d68ed26a5e413e9234293f4d9 (diff) |
Fix order of calloc arguments.
(Patch by Dawid Gajownik)
Diffstat (limited to 'Affinity.c')
-rw-r--r-- | Affinity.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |