Skip to content

Commit

Permalink
Correct armv7l compilation error
Browse files Browse the repository at this point in the history
Issue: #113
  • Loading branch information
dspinellis committed Sep 22, 2020
1 parent 5e09612 commit 63228a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion core-tools/src/dgsh-tee.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ buffer_file_free(struct buffer_pool *bp, int pool)
#ifdef FALLOC_FL_PUNCH_HOLE
static bool warned = false;

if (fallocate(tmp_fd, FALLOC_FL_PUNCH_HOLE, pool * buffer_size, buffer_size) < 0 &&
if (fallocate(bp->page_file_fd, FALLOC_FL_PUNCH_HOLE, pool * buffer_size, buffer_size) < 0 &&
!warned) {
warn("Failed to free temporary buffer space");
warned = true;
Expand Down
2 changes: 0 additions & 2 deletions core-tools/tests-regression/dgsh-wrap/echo-s.ok

This file was deleted.

0 comments on commit 63228a8

Please sign in to comment.