diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-02-18 20:13:18 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-02-18 20:13:18 +0000 |
commit | aba90261a774cb31898563edbe16da780f7c738b (patch) | |
tree | 2cbea90fc04e0f7ae1a4966e90e061495b121da8 /coreutils/stty.c | |
parent | df65678873a9c681c6f011d2350c60ac2cb140db (diff) | |
download | busybox-w32-aba90261a774cb31898563edbe16da780f7c738b.tar.gz busybox-w32-aba90261a774cb31898563edbe16da780f7c738b.tar.bz2 busybox-w32-aba90261a774cb31898563edbe16da780f7c738b.zip |
Another patch from Vladimir to eliminate obsolete junk.
git-svn-id: svn://busybox.net/trunk/busybox@1852 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r-- | coreutils/stty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index 0fc0bfbc2..4a5aecf1d 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -1302,10 +1302,9 @@ static const int NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)); | |||
1302 | static speed_t string_to_baud(const char *arg) | 1302 | static speed_t string_to_baud(const char *arg) |
1303 | { | 1303 | { |
1304 | int i; | 1304 | int i; |
1305 | static const struct suffix_mult stty_zerosuff = { NULL, 0 }; | ||
1306 | 1305 | ||
1307 | for (i = 0; i < NUM_SPEEDS; ++i) | 1306 | for (i = 0; i < NUM_SPEEDS; ++i) |
1308 | if (parse_number(arg, &stty_zerosuff) == speeds[i].value) | 1307 | if (parse_number(arg, 0) == speeds[i].value) |
1309 | return speeds[i].speed; | 1308 | return speeds[i].speed; |
1310 | return (speed_t) - 1; | 1309 | return (speed_t) - 1; |
1311 | } | 1310 | } |