From bfc880994c80a798f28d51558ee120f70d65dd0f Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 29 Mar 2017 20:28:43 +0100 Subject: [PATCH] dmfilemapd: cast sysconf() return value to int --- daemons/dmfilemapd/dmfilemapd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.5