]> git.proxmox.com Git - mirror_spl-debian.git/commit
Fix two minor compiler warnings
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 26 Jul 2010 17:24:26 +0000 (10:24 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 26 Jul 2010 17:24:26 +0000 (10:24 -0700)
commit849c50e7f2487dd3f1dce1417e51dff3a12338d6
tree3ce4f2c2eb0edda59c3efeae2cd524ae19fab396
parent8b0eb3f0dcf293467ddfd4b0f0d7e757f2369452
Fix two minor compiler warnings

In cmd/splat.c there was a comparison between an __u32 and an int.  To
resolve the issue simply use a __u32 and strtoul() when converting the
provided user string.

In module/spl/spl-vnode.c we should explicitly cast nd->last.name to
a const char * which is what is expected by the prototype.
cmd/splat.c
module/spl/spl-vnode.c