diff options
author | John Levon <john.levon@joyent.com> | 2018-12-18 17:54:15 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-02-08 20:20:48 +0000 |
commit | 1b58875ad7966cf2c85ee8e92f3da04f0a3b2f7a (patch) | |
tree | dbe61047954170e16d3fe146b01f280f512ac3ff /usr/src/lib/libipmi/common/libipmi.c | |
parent | 0bead3cac461a1ad4d49bae1dc8a3be05110aa74 (diff) | |
download | illumos-joyent-1b58875ad7966cf2c85ee8e92f3da04f0a3b2f7a.tar.gz |
10100 Illumos is confused about calloc() arguments
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libipmi/common/libipmi.c')
-rw-r--r-- | usr/src/lib/libipmi/common/libipmi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/lib/libipmi/common/libipmi.c b/usr/src/lib/libipmi/common/libipmi.c index 63e985755c..cf7c7e6145 100644 --- a/usr/src/lib/libipmi/common/libipmi.c +++ b/usr/src/lib/libipmi/common/libipmi.c @@ -21,6 +21,8 @@ /* * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2018, Joyent, Inc. */ #include <libipmi.h> @@ -37,7 +39,7 @@ ipmi_open(int *errp, char **msg, uint_t xport_type, nvlist_t *params) if (msg) *msg = NULL; - if ((ihp = calloc(sizeof (ipmi_handle_t), 1)) == NULL) { + if ((ihp = calloc(1, sizeof (ipmi_handle_t))) == NULL) { *errp = EIPMI_NOMEM; if (msg) *msg = "memory allocation failure"; |