aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 14:43:21 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 14:43:21 +0000
commit278809224505ecc8bbef7b9a86982bf35b46e719 (patch)
tree38f509fc9556f68f758c77b06b480cc33b2725eb /loginutils
parent7efaf01635fb84c9c6cbaa179831423f2d11bcf3 (diff)
downloadbusybox-w32-278809224505ecc8bbef7b9a86982bf35b46e719.tar.gz
busybox-w32-278809224505ecc8bbef7b9a86982bf35b46e719.tar.bz2
busybox-w32-278809224505ecc8bbef7b9a86982bf35b46e719.zip
safe_strtoXX interface proved to be a bit unconvenient.
Remove it, introduce saner bb_strtoXX. Saved ~350 bytes. git-svn-id: svn://busybox.net/trunk/busybox@16684 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c4
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;
147static int bcode(const char *s) 147static 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);