diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 14:43:21 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 14:43:21 +0000 |
commit | d686a045c8134d3a42fa5cc6b2e09118e08d603f (patch) | |
tree | 38f509fc9556f68f758c77b06b480cc33b2725eb /loginutils | |
parent | 8a0a83d503a7971895254efa9e79cf15ba1850d4 (diff) | |
download | busybox-w32-d686a045c8134d3a42fa5cc6b2e09118e08d603f.tar.gz busybox-w32-d686a045c8134d3a42fa5cc6b2e09118e08d603f.tar.bz2 busybox-w32-d686a045c8134d3a42fa5cc6b2e09118e08d603f.zip |
safe_strtoXX interface proved to be a bit unconvenient.
Remove it, introduce saner bb_strtoXX.
Saved ~350 bytes.
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/getty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index 0c269de98..a85e52306 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
@@ -147,8 +147,8 @@ static FILE *dbf; | |||
147 | static int bcode(const char *s) | 147 | static int bcode(const char *s) |
148 | { | 148 | { |
149 | int r; | 149 | int r; |
150 | unsigned value; | 150 | unsigned value = bb_strtou(s, NULL, 10); |
151 | if (safe_strtou((char *)s, &value)) { | 151 | if (errno) { |
152 | return -1; | 152 | return -1; |
153 | } | 153 | } |
154 | r = tty_value_to_baud(value); | 154 | r = tty_value_to_baud(value); |