diff options
author | Karel Zak | 2014-11-10 11:29:42 +0100 |
---|---|---|
committer | Karel Zak | 2014-11-10 11:29:42 +0100 |
commit | 64d0cee6c00abb3efa89d53879c0bba15f7eb805 (patch) | |
tree | a41ed5121760f63976a1df22b91e4f44940b98c8 /include/statfs_magic.h | |
parent | mkswap: make final report more human readable (diff) | |
download | kernel-qcow2-util-linux-64d0cee6c00abb3efa89d53879c0bba15f7eb805.tar.gz kernel-qcow2-util-linux-64d0cee6c00abb3efa89d53879c0bba15f7eb805.tar.xz kernel-qcow2-util-linux-64d0cee6c00abb3efa89d53879c0bba15f7eb805.zip |
include/statfs_magic: use macro rather than type for f_type
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/statfs_magic.h')
-rw-r--r-- | include/statfs_magic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/statfs_magic.h b/include/statfs_magic.h index d27be1cff..7397a4e5d 100644 --- a/include/statfs_magic.h +++ b/include/statfs_magic.h @@ -7,9 +7,9 @@ * If possible then don't depend on internal libc __SWORD_TYPE type. */ #ifdef __GNUC__ -typedef __typeof__( ((struct statfs *)0)->f_type ) ul_statfs_ftype_t; +#define F_TYPE_EQUAL(a, b) (a == (__typeof__(a)) b) #else -typedef __SWORD_TYPE ul_statfs_ftype_t; +#define F_TYPE_EQUAL(a, b) (a == (__SWORD_TYPE) b) #endif /* |