summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/src/gf-history-changelog.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-history-changelog.c')
-rw-r--r--xlators/features/changelog/lib/src/gf-history-changelog.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/xlators/features/changelog/lib/src/gf-history-changelog.c b/xlators/features/changelog/lib/src/gf-history-changelog.c
index 45f2d8ba9f3..0c2320097d4 100644
--- a/xlators/features/changelog/lib/src/gf-history-changelog.c
+++ b/xlators/features/changelog/lib/src/gf-history-changelog.c
@@ -214,9 +214,7 @@ out:
ssize_t
gf_history_changelog_scan ()
{
- int ret = 0;
int tracker_fd = 0;
- size_t len = 0;
size_t off = 0;
xlator_t *this = NULL;
size_t nr_entries = 0;
@@ -258,9 +256,6 @@ gf_history_changelog_scan ()
if (gf_ftruncate (tracker_fd, 0))
goto out;
- len = offsetof (struct dirent, d_name)
- + pathconf (hist_jnl->jnl_processing_dir, _PC_NAME_MAX) + 1;
-
rewinddir (hist_jnl->jnl_dir);
for (;;) {