summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-03-29 20:28:43 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-03-29 20:28:43 +0100
commit3c69a7248a2dbf533d995f279cfa62adf1ad407d (patch)
treed5e84982206fbd689989a00da365258d86a22234
parent00e716b0376fb44af00c002347e023e8f47cdb40 (diff)
downloadlvm2-3c69a7248a2dbf533d995f279cfa62adf1ad407d.tar.gz
dmfilemapd: cast sysconf() return value to int
-rw-r--r--daemons/dmfilemapd/dmfilemapd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/dmfilemapd/dmfilemapd.c b/daemons/dmfilemapd/dmfilemapd.c
index 2c80d42aa..3e691e88a 100644
--- a/daemons/dmfilemapd/dmfilemapd.c
+++ b/daemons/dmfilemapd/dmfilemapd.c
@@ -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)
continue;
close(fd);