summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-05-21 17:58:58 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-05-21 17:58:58 +0200
commite383af6209d3e9983c6989b171bbedc40fc9ffbe (patch)
treeac941d54ab981d451b4e3d3dda64bc1ca1f02263 /inotail.c
parent2bc261d8289552d21ac7ae652c95d121f5b9561c (diff)
Get rid of one variable
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/inotail.c b/inotail.c
index 6f02f78..f9126b7 100644
--- a/inotail.c
+++ b/inotail.c
@@ -133,7 +133,6 @@ static off_t lines_to_offset_from_end(struct file_struct *f, unsigned long n_lin
{
char *buf;
off_t offset = f->st_size;
- ssize_t buffer_size = f->st_blksize;
buf = alloc_buffer(f);
@@ -141,9 +140,9 @@ static off_t lines_to_offset_from_end(struct file_struct *f, unsigned long n_lin
while (offset > 0 && n_lines > 0) {
int i;
- ssize_t rc, block_size = buffer_size; /* Size of the current block we're reading */
+ ssize_t rc, block_size = f->st_blksize; /* Size of the current block we're reading */
- if (offset < buffer_size)
+ if (offset < f->st_blksize)
block_size = offset;
/* Start of current block */