]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_conf: Use uid_t/gid_t instead of int to cast the value
authorOsier Yang <jyang@redhat.com>
Wed, 22 May 2013 12:05:22 +0000 (20:05 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 29 May 2013 10:19:19 +0000 (18:19 +0800)
commit6c89768da43946647807509f7a39431da1ddaba4
treef37657faa16d304925c15b4d4b392755205e9bfb
parentec2b81c68b5147daeb2f00149d7cff954e99ff5f
storage_conf: Use uid_t/gid_t instead of int to cast the value

And error out if the casted value is not same with the original
one, which prevents the bug on platform(s) where uid_t/gid_t
has different size with long.
src/conf/storage_conf.c