From e7a8d14cbd7bbb896e64effed5bc6fb023777d36 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 5 Nov 2021 09:22:09 +1100 Subject: Correct the order of xCalloc parameters in a couple of places No functional change. Thanks to @BenBE for pointing these out. --- netbsd/NetBSDProcess.c | 2 +- openbsd/OpenBSDProcess.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbsd/NetBSDProcess.c b/netbsd/NetBSDProcess.c index f80db5bd..8d2b4c40 100644 --- a/netbsd/NetBSDProcess.c +++ b/netbsd/NetBSDProcess.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; diff --git a/openbsd/OpenBSDProcess.c b/openbsd/OpenBSDProcess.c index fe9018d2..ac3def3a 100644 --- a/openbsd/OpenBSDProcess.c +++ b/openbsd/OpenBSDProcess.c @@ -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; -- cgit v1.2.3