From df9cb5d5c02f23d231945f0959bfb2ba76c7d921 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 9 Jan 1999 14:21:32 +0000 Subject: s/max_n_consecutive_size_changes/max_n_consecutive_size_changes_between_opens/ --- src/tail.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tail.c b/src/tail.c index 4171d18f6..a8edb5769 100644 --- a/src/tail.c +++ b/src/tail.c @@ -148,7 +148,7 @@ static unsigned long max_n_unchanged_stats_between_opens = same device/inode-number pair as before. This option is meaningful only when following by name. --max-n-consecutive-size-changes=N */ #define DEFAULT_MAX_N_CONSECUTIVE_SIZE_CHANGES 200 -static unsigned long max_n_consecutive_size_changes = +static unsigned long max_n_consecutive_size_changes_between_opens = DEFAULT_MAX_N_CONSECUTIVE_SIZE_CHANGES; /* The name this program was run with. */ @@ -802,7 +802,7 @@ tail_forever (struct File_spec *f, int nfiles) growing will be recognized as having been renamed. */ if (follow_mode == Follow_name && (f[i].n_consecutive_size_changes - > max_n_consecutive_size_changes)) + > max_n_consecutive_size_changes_between_opens)) { f[i].n_consecutive_size_changes = 0; recheck (&f[i]); @@ -1289,7 +1289,8 @@ parse_options (int argc, char **argv, case CHAR_MAX + 3: /* --max-consecutive-size-changes=N */ - if (xstrtoul (optarg, NULL, 10, &max_n_consecutive_size_changes, "") + if (xstrtoul (optarg, NULL, 10, + &max_n_consecutive_size_changes_between_opens, "") != LONGINT_OK) { error (EXIT_FAILURE, 0, -- cgit v1.2.3-70-g09d2