From d686a045c8134d3a42fa5cc6b2e09118e08d603f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 27 Nov 2006 14:43:21 +0000 Subject: safe_strtoXX interface proved to be a bit unconvenient. Remove it, introduce saner bb_strtoXX. Saved ~350 bytes. --- loginutils/getty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loginutils') diff --git a/loginutils/getty.c b/loginutils/getty.c index 0c269de..a85e523 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -147,8 +147,8 @@ static FILE *dbf; static int bcode(const char *s) { int r; - unsigned value; - if (safe_strtou((char *)s, &value)) { + unsigned value = bb_strtou(s, NULL, 10); + if (errno) { return -1; } r = tty_value_to_baud(value); -- cgit v1.1