diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-05-21 17:58:58 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-05-21 17:58:58 +0200 |
commit | e383af6209d3e9983c6989b171bbedc40fc9ffbe (patch) | |
tree | ac941d54ab981d451b4e3d3dda64bc1ca1f02263 /inotail.c | |
parent | 2bc261d8289552d21ac7ae652c95d121f5b9561c (diff) |
Get rid of one variable
Diffstat (limited to 'inotail.c')
-rw-r--r-- | inotail.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 */ |