Correct the order of xCalloc parameters in a couple of places

No functional change.  Thanks to @BenBE for pointing these out.
main
Nathan Scott 4 years ago
parent 21cb1c4d59
commit e7a8d14cbd
  1. 2
      netbsd/NetBSDProcess.c
  2. 2
      openbsd/OpenBSDProcess.c

@ -211,7 +211,7 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = {
};
Process* NetBSDProcess_new(const Settings* settings) {
NetBSDProcess* this = xCalloc(sizeof(NetBSDProcess), 1);
NetBSDProcess* this = xCalloc(1, sizeof(NetBSDProcess));
Object_setClass(this, Class(NetBSDProcess));
Process_init(&this->super, settings);
return &this->super;

@ -203,7 +203,7 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = {
};
Process* OpenBSDProcess_new(const Settings* settings) {
OpenBSDProcess* this = xCalloc(sizeof(OpenBSDProcess), 1);
OpenBSDProcess* this = xCalloc(1, sizeof(OpenBSDProcess));
Object_setClass(this, Class(OpenBSDProcess));
Process_init(&this->super, settings);
return &this->super;

Loading…
Cancel
Save