From 76b6cbea60b6af6a89d3fc40486486c97df28fcc Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 29 Mar 2017 20:26:39 +0100 Subject: [PATCH] dmfilemapd: fix len type in _filemap_monitor_check_file_unlinked() Make 'len' a size_t to match the return type of readlink(2). --- daemons/dmfilemapd/dmfilemapd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemons/dmfilemapd/dmfilemapd.c b/daemons/dmfilemapd/dmfilemapd.c index 225335c0b..2c80d42aa 100644 --- a/daemons/dmfilemapd/dmfilemapd.c +++ b/daemons/dmfilemapd/dmfilemapd.c @@ -559,7 +559,8 @@ static int _filemap_monitor_check_file_unlinked(struct filemap_monitor *fm) { char path_buf[PATH_MAX]; char link_buf[PATH_MAX]; - int same, fd, len; + int same, fd; + ssize_t len; fm->deleted = 0;