summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-04-17 18:58:06 +0200
committerHarald Hoyer <harald@redhat.com>2013-04-17 19:00:50 +0200
commitc4073a27c555aeceac87a3b02a83141cde641a1e (patch)
treef30b47604306eae4a6fa5ec11d84fdcef697aa7d /src/shared
parent9e6d4c613d14ee98ff1d7c88b2084697a40815fc (diff)
fixup for cddf148028f52
Instead of making a type up, just use __SWORD_TYPE, after reading statfs(2). Too bad, this does not fix s390x because __SWORD_TYPE is (long int) and the kernel uses (int) to fill in the field!!!!!!
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index f59c19df29..386973b3fc 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -2779,8 +2779,8 @@ int rm_rf_children_dangerous(int fd, bool only_dirs, bool honour_sticky, struct
static int is_temporary_fs(struct statfs *s) {
assert(s);
- return (unsigned long) s->f_type == TMPFS_MAGIC ||
- (unsigned long) s->f_type == RAMFS_MAGIC;
+ return (unsigned __SWORD_TYPE) s->f_type == TMPFS_MAGIC ||
+ (unsigned __SWORD_TYPE) s->f_type == RAMFS_MAGIC;
}
int rm_rf_children(int fd, bool only_dirs, bool honour_sticky, struct stat *root_dev) {