summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2006-12-14 22:01:04 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-12-14 22:01:04 +0100
commitb9057fcd6ea0712dbefeb47006f63c0bf0e18d5f (patch)
treea9abf3c7e40068763f61597d8a530eb0a940fecd
parentfe74ee5657619010c3cccb11ee3040b7f66e1ace (diff)
inotail.c: Move a variable to the block where it's used
-rw-r--r--inotail.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/inotail.c b/inotail.c
index 51bb353..731346f 100644
--- a/inotail.c
+++ b/inotail.c
@@ -277,10 +277,9 @@ out:
static int handle_inotify_event(struct inotify_event *inev, struct file_struct *fil, int n_ignored)
{
- off_t offset;
-
if (inev->mask & IN_MODIFY) {
int rc;
+ off_t offset;
char fbuf[BUFFER_SIZE];
struct stat finfo;