From e80cbe194df80d6cdd61667e15103849e8ae4ba2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 17 Jul 2006 18:56:22 +0200 Subject: Update usage, remove version definition (set from Makefile now), remove only user of file_struct's ignore field. --- inotail.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inotail.c b/inotail.c index a852b52..b5cf134 100644 --- a/inotail.c +++ b/inotail.c @@ -38,7 +38,6 @@ #include "inotail.h" #define PROGRAM_NAME "inotail" -#define VERSION "0.1" #define BUFFER_SIZE 4096 @@ -51,8 +50,9 @@ static void usage(int status) fprintf(stderr, " -c N output the last N bytes\n"); fprintf(stderr, " -f output as the file grows (that's were %s differs from pure tail)\n", PROGRAM_NAME); fprintf(stderr, " -n N output the last N lines (default: %d)\n", DEFAULT_N_LINES); - fprintf(stderr, " -v always output headers giving file names\n"); - fprintf(stderr, " -V Show %s version\n", PROGRAM_NAME); + fprintf(stderr, " -v Output headers with file names\n"); + fprintf(stderr, " -h Show this help and exit\n"); + fprintf(stderr, " -V Show %s version and exit\n", PROGRAM_NAME); exit(status); } @@ -185,7 +185,7 @@ static int watch_files(struct file_struct *f, int n_files) /* Which file has produced the event? */ for (i = 0; i < n_files; i++) { - if (!f[i].ignore && f[i].i_watch == inev->wd) { + if (f[i].i_watch == inev->wd) { fil = &f[i]; break; } -- cgit v1.2.3-54-g00ecf