mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
dmfilemapd: cast sysconf() return value to int
This commit is contained in:
parent
76b6cbea60
commit
bfc880994c
@ -660,7 +660,7 @@ static int _daemonise(struct filemap_monitor *fm)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (fd = sysconf(_SC_OPEN_MAX) - 1; fd > STDERR_FILENO; fd--) {
|
for (fd = (int) sysconf(_SC_OPEN_MAX) - 1; fd > STDERR_FILENO; fd--) {
|
||||||
if (fd == fm->fd)
|
if (fd == fm->fd)
|
||||||
continue;
|
continue;
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user