]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: fix cast-align error
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Wed, 10 Oct 2018 08:04:04 +0000 (10:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Oct 2018 14:53:13 +0000 (16:53 +0200)
commit2b03534eeb2f3f41865538cd4c3e5d326260ad27
tree833107ef06db85aa1eae02dfd70680e66722468e
parent7bff646d71aa90ed8727ef99be29d6d2ab5d8f06
virfile: fix cast-align error

On s390x the struct member f_type of statsfs is hard coded to 'unsigned
int'. Change virFileIsSharedFixFUSE() to take a 'long long int' and use
a temporary to avoid pointer-casting.

This fixes the following error:
../../src/util/virfile.c:3578:38: error: cast increases required alignment of target type [-Werror=cast-align]
         virFileIsSharedFixFUSE(path, (long *) &sb.f_type);

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Bjoern Walk <bwalk@linux.ibm.com>
src/util/virfile.c