]> granicus.if.org Git - zfs/commit
Fix calloc(3) arguments order
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 12 Apr 2018 17:50:39 +0000 (02:50 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 12 Apr 2018 17:50:39 +0000 (10:50 -0700)
commit8111eb4abc96a173845a553dc7d65382398f0683
treeeca13f7bad728d865cffe4131dac3962f52b29ef
parent7403d0743e2b75b7f5412a14007ba159efb67a7d
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
lib/libefi/rdwr_efi.c
lib/libshare/libshare.c
lib/libspl/mkdirp.c
lib/libzfs/libzfs_dataset.c
lib/libzfs/libzfs_import.c
tests/zfs-tests/cmd/mkfile/mkfile.c