chiark / gitweb /
fixup 8c68a7017 and cast to (unsigned long)
[elogind.git] / src / shared / util.c
index 3a6efe3fce945b1820d0176ce3ad1f435c5aaa91..f59c19df29018242d9dd587df45af7ff0fc23afa 100644 (file)
@@ -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) {