HomeFreeBSD

32-bit compat, hostid_read()

Description

32-bit compat, hostid_read()

Explicitly cast the sizeof in hostid_read() to prevent the
following compiler warning on 32-bit systems.

module/spl/spl-generic.c:490:10: error: format '%lu' expects
argument of type 'long unsigned int', but argument 4 has type
'unsigned int' [-Werror=format]

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jul 20 2012, 6:12 PM
Parents
rGd503b971f484: Optimize spl_rwsem_is_locked()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGe8267acd25ad: 32-bit compat, hostid_read() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jul 20 2012, 6:14 PM