summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tail.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tail.c b/src/tail.c
index d6dac195c..f87d2f249 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -1248,11 +1248,11 @@ parse_options (int argc, char **argv,
case 'f':
forever = 1;
- follow_mode = (optarg == NULL
- ? DEFAULT_FOLLOW_MODE
- : XARGCASEMATCH ("--follow", optarg,
- follow_mode_string,
- follow_mode_map));
+ if (optarg == NULL)
+ follow_mode = DEFAULT_FOLLOW_MODE;
+ else
+ XARGMATCH (&follow_mode, "--follow", optarg,
+ follow_mode_string, follow_mode_map, usage (1));
break;
case CHAR_MAX + 1: