diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2017-03-29 20:26:39 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-29 20:26:39 +0100 |
commit | 00e716b0376fb44af00c002347e023e8f47cdb40 (patch) | |
tree | 28e399b0a315f03e380b6e38233e0a7996643cef | |
parent | 926ce7e2793b8f0a46a0cd94cbe984adb737ce65 (diff) | |
download | lvm2-00e716b0376fb44af00c002347e023e8f47cdb40.tar.gz |
dmfilemapd: fix len type in _filemap_monitor_check_file_unlinked()
Make 'len' a size_t to match the return type of readlink(2).
-rw-r--r-- | daemons/dmfilemapd/dmfilemapd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |