.sa_handler = SIG_IGN,
.sa_flags = SA_RESTART,
};
- int _cleanup_close_ fd;
+ _cleanup_close_ int fd;
fd = open("/dev/tty", O_RDWR|O_NOCTTY|O_NDELAY|O_CLOEXEC);
if (fd < 0)
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 s->f_type == (__SWORD_TYPE) TMPFS_MAGIC ||
+ s->f_type == (__SWORD_TYPE) RAMFS_MAGIC;
}
int rm_rf_children(int fd, bool only_dirs, bool honour_sticky, struct stat *root_dev) {
}
int glob_exists(const char *path) {
- glob_t _cleanup_globfree_ g = {};
+ _cleanup_globfree_ glob_t g = {};
int r, k;
assert(path);