mirror of https://github.com/xzeldon/htop.git
Correct the order of xCalloc parameters in a couple of places
No functional change. Thanks to @BenBE for pointing these out.
This commit is contained in:
parent
21cb1c4d59
commit
e7a8d14cbd
|
@ -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…
Reference in New Issue