HomeFreeBSD

Fix calloc(3) arguments order

Description

Fix calloc(3) arguments order

calloc(3) takes nelem (or nmemb in glibc) first, and then size of
elements. No difference expected for having these in reverse order,
however should follow the standard.

http://pubs.opengroup.org/onlinepubs/009695399/functions/calloc.html

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #7405

Details

Provenance
kusumi.tomohiro_gmail.comAuthored on Apr 12 2018, 5:50 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 12 2018, 5:50 PM
Parents
rG7403d0743e2b: Fix zfs_arc_max minimum tuning
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8111eb4abc96: Fix calloc(3) arguments order (authored by Tomohiro Kusumi <kusumi.tomohiro@gmail.com>).Apr 12 2018, 5:50 PM