aboutsummaryrefslogtreecommitdiff
path: root/libbb/procps.c
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 /libbb/procps.c
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 'libbb/procps.c')
-rw-r--r--libbb/procps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index ee4f5e53f..017710ff4 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -119,7 +119,8 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags)
119 free_procps_scan(sp); 119 free_procps_scan(sp);
120 return NULL; 120 return NULL;
121 } 121 }
122 if (safe_strtou(entry->d_name, &pid)) 122 pid = bb_strtou(entry->d_name, NULL, 10);
123 if (errno)
123 continue; 124 continue;
124 125
125 /* After this point we have to break, not continue 126 /* After this point we have to break, not continue