]> granicus.if.org Git - spl/commit
32-bit compat, hostid_read()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 Jul 2012 18:12:19 +0000 (11:12 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 Jul 2012 18:14:04 +0000 (11:14 -0700)
commite8267acd25ad566218187716739f0aec5d442e3f
tree0f360b752672b3b9859d7be015148eeba6789f2d
parentd503b971f4848f1b9d654684f1b3c864baad5d88
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>
module/spl/spl-generic.c