1
0
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:
Bryn M. Reeves 2017-03-29 20:28:43 +01:00
parent 76b6cbea60
commit bfc880994c

View File

@ -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);