From 963791a9e9fb06ea515089925f95cf413374c1bc Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 18 Feb 2001 20:13:18 +0000 Subject: Another patch from Vladimir to eliminate obsolete junk. --- stty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stty.c') diff --git a/stty.c b/stty.c index 0fc0bfbc2..4a5aecf1d 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; } -- cgit v1.2.3