Another patch from Vladimir to eliminate obsolete junk.
This commit is contained in:
parent
f1bbb22dca
commit
963791a9e9
@ -1302,10 +1302,9 @@ static const int NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map));
|
|||||||
static speed_t string_to_baud(const char *arg)
|
static speed_t string_to_baud(const char *arg)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
static const struct suffix_mult stty_zerosuff = { NULL, 0 };
|
|
||||||
|
|
||||||
for (i = 0; i < NUM_SPEEDS; ++i)
|
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 speeds[i].speed;
|
||||||
return (speed_t) - 1;
|
return (speed_t) - 1;
|
||||||
}
|
}
|
||||||
|
@ -37,12 +37,6 @@ static const struct suffix_mult tail_suffixes[] = {
|
|||||||
{ NULL, 0 }
|
{ 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 BYTES = 0;
|
||||||
static const int LINES = 1;
|
static const int LINES = 1;
|
||||||
|
|
||||||
@ -96,7 +90,7 @@ int tail_main(int argc, char **argv)
|
|||||||
hide_headers = 1;
|
hide_headers = 1;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
sleep_period = parse_number(optarg, null_suffixes);
|
sleep_period = parse_number(optarg, 0);
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
show_headers = 1;
|
show_headers = 1;
|
||||||
|
3
stty.c
3
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)
|
static speed_t string_to_baud(const char *arg)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
static const struct suffix_mult stty_zerosuff = { NULL, 0 };
|
|
||||||
|
|
||||||
for (i = 0; i < NUM_SPEEDS; ++i)
|
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 speeds[i].speed;
|
||||||
return (speed_t) - 1;
|
return (speed_t) - 1;
|
||||||
}
|
}
|
||||||
|
8
tail.c
8
tail.c
@ -37,12 +37,6 @@ static const struct suffix_mult tail_suffixes[] = {
|
|||||||
{ NULL, 0 }
|
{ 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 BYTES = 0;
|
||||||
static const int LINES = 1;
|
static const int LINES = 1;
|
||||||
|
|
||||||
@ -96,7 +90,7 @@ int tail_main(int argc, char **argv)
|
|||||||
hide_headers = 1;
|
hide_headers = 1;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
sleep_period = parse_number(optarg, null_suffixes);
|
sleep_period = parse_number(optarg, 0);
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
show_headers = 1;
|
show_headers = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user