summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-04-17 18:23:17 +0200
committerHarald Hoyer <harald@redhat.com>2013-04-17 18:23:17 +0200
commitcddf148028f525be8176e7f1cbbf4f862bd287f6 (patch)
tree7930adc3be2637b70d869236743c457f66abf3b8 /src/shared/util.c
parent8c68a70170b31f93c287f29fd06c6c17edaf19ad (diff)
fixup 8c68a7017 and cast to (unsigned long)
Diffstat (limited to 'src/shared/util.c')
-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 3a6efe3fce..f59c19df29 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) s->f_type == TMPFS_MAGIC ||
- (unsigned) s->f_type == RAMFS_MAGIC;
+ return (unsigned long) s->f_type == TMPFS_MAGIC ||
+ (unsigned long) s->f_type == RAMFS_MAGIC;
}
int rm_rf_children(int fd, bool only_dirs, bool honour_sticky, struct stat *root_dev) {