diff options
author | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-07-17 18:56:22 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-07-17 18:56:22 +0200 |
commit | e80cbe194df80d6cdd61667e15103849e8ae4ba2 (patch) | |
tree | b0da061926fa622896846bcd8d8a9c4430fd6e5d | |
parent | 9f286218b4644920c97bd44b36c090c6f3110e2d (diff) |
Update usage, remove version definition (set from Makefile now), remove only
user of file_struct's ignore field.
-rw-r--r-- | inotail.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |