Fix order of calloc arguments.

(Patch by Dawid Gajownik)
This commit is contained in:
Hisham Muhammad
2014-01-16 18:51:16 -02:00
parent c1e0f6e17c
commit 76a715ee8c
9 changed files with 13 additions and 13 deletions

View File

@ -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;
}