HomeFreeBSD

Fix coverity defects

Description

Fix coverity defects

coverity scan CID:147633,type: sizeof not portable
coverity scan CID:147637,type: sizeof not portable
coverity scan CID:147638,type: sizeof not portable
coverity scan CID:147640,type: sizeof not portable

In these particular cases sizeof (XX **) happens to be equal to sizeof (X *),
but this is not a portable assumption.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Closes #5144

Details

Provenance
luozhengzheng <luo.zhengzheng@zte.com.cn>Authored on Sep 22 2016, 1:09 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 22 2016, 1:09 AM
Parents
rG84347be0986f: Fix zfs_destroy_001_pos.ksh
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG160987b57629: Fix coverity defects (authored by luozhengzheng <luo.zhengzheng@zte.com.cn>).Sep 22 2016, 1:09 AM