summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-26 04:48:29 +0000
committerJim Meyering <jim@meyering.net>1997-01-26 04:48:29 +0000
commit73ed11f2b736fff7e65f79d34ed5d30eababedf1 (patch)
tree27fee45294cbeb4dabc8d25afc31bccb34570bdd /src
parent6390686aab6b7cb46fc0e78d3a57f8a4b947821a (diff)
downloadcoreutils-73ed11f2b736fff7e65f79d34ed5d30eababedf1.tar.xz
(parse_options): Remove unnecessary goto and label.
Diffstat (limited to 'src')
-rw-r--r--src/tail.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tail.c b/src/tail.c
index 2aa1b80ca..06903e000 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -1002,12 +1002,8 @@ parse_options (int argc, char **argv,
break;
case 'c':
- count_lines = 0;
- goto getnum;
-
case 'n':
- count_lines = 1;
- getnum:
+ count_lines = (c == 'n');
if (*optarg == '+')
from_start = 1;
else if (*optarg == '-')