summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2001-02-18 20:13:18 +0000
committerEric Andersen2001-02-18 20:13:18 +0000
commit963791a9e9fb06ea515089925f95cf413374c1bc (patch)
tree2cbea90fc04e0f7ae1a4966e90e061495b121da8
parentf1bbb22dca4d39aa227246f4c2ee90acd7e512a4 (diff)
downloadbusybox-963791a9e9fb06ea515089925f95cf413374c1bc.zip
busybox-963791a9e9fb06ea515089925f95cf413374c1bc.tar.gz
Another patch from Vladimir to eliminate obsolete junk.
-rw-r--r--coreutils/stty.c3
-rw-r--r--coreutils/tail.c8
-rw-r--r--stty.c3
-rw-r--r--tail.c8
4 files changed, 4 insertions, 18 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index 0fc0bfb..4a5aecf 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1302,10 +1302,9 @@ static const int NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map));
static speed_t string_to_baud(const char *arg)
{
int i;
- static const struct suffix_mult stty_zerosuff = { NULL, 0 };
for (i = 0; i < NUM_SPEEDS; ++i)
- if (parse_number(arg, &stty_zerosuff) == speeds[i].value)
+ if (parse_number(arg, 0) == speeds[i].value)
return speeds[i].speed;
return (speed_t) - 1;
}
diff --git a/coreutils/tail.c b/coreutils/tail.c
index a3b8f6d..778c2d1 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -37,12 +37,6 @@ static const struct suffix_mult tail_suffixes[] = {
{ NULL, 0 }
};
-#ifndef BB_FEATURE_SIMPLE_TAIL
-static const struct suffix_mult null_suffixes[] = {
- { NULL, 0 }
-};
-#endif
-
static const int BYTES = 0;
static const int LINES = 1;
@@ -96,7 +90,7 @@ int tail_main(int argc, char **argv)
hide_headers = 1;
break;
case 's':
- sleep_period = parse_number(optarg, null_suffixes);
+ sleep_period = parse_number(optarg, 0);
break;
case 'v':
show_headers = 1;
diff --git a/stty.c b/stty.c
index 0fc0bfb..4a5aecf 100644
--- a/stty.c
+++ b/stty.c
@@ -1302,10 +1302,9 @@ static const int NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map));
static speed_t string_to_baud(const char *arg)
{
int i;
- static const struct suffix_mult stty_zerosuff = { NULL, 0 };
for (i = 0; i < NUM_SPEEDS; ++i)
- if (parse_number(arg, &stty_zerosuff) == speeds[i].value)
+ if (parse_number(arg, 0) == speeds[i].value)
return speeds[i].speed;
return (speed_t) - 1;
}
diff --git a/tail.c b/tail.c
index a3b8f6d..778c2d1 100644
--- a/tail.c
+++ b/tail.c
@@ -37,12 +37,6 @@ static const struct suffix_mult tail_suffixes[] = {
{ NULL, 0 }
};
-#ifndef BB_FEATURE_SIMPLE_TAIL
-static const struct suffix_mult null_suffixes[] = {
- { NULL, 0 }
-};
-#endif
-
static const int BYTES = 0;
static const int LINES = 1;
@@ -96,7 +90,7 @@ int tail_main(int argc, char **argv)
hide_headers = 1;
break;
case 's':
- sleep_period = parse_number(optarg, null_suffixes);
+ sleep_period = parse_number(optarg, 0);
break;
case 'v':
show_headers = 1;