summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-09 14:21:32 +0000
committerJim Meyering <jim@meyering.net>1999-01-09 14:21:32 +0000
commitdf9cb5d5c02f23d231945f0959bfb2ba76c7d921 (patch)
treeda9d85090122a4c86545a5767768da367a5254bb /src
parent375b687738ee666ce57a16ef5c76e191e9217c8a (diff)
downloadcoreutils-df9cb5d5c02f23d231945f0959bfb2ba76c7d921.tar.xz
s/max_n_consecutive_size_changes/max_n_consecutive_size_changes_between_opens/
Diffstat (limited to 'src')
-rw-r--r--src/tail.c7
1 files changed, 4 insertions, 3 deletions
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,