diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 17:43:21 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 17:43:21 +0300 |
commit | d686a045c8134d3a42fa5cc6b2e09118e08d603f (patch) | |
tree | 38f509fc9556f68f758c77b06b480cc33b2725eb /libbb/procps.c | |
parent | 8a0a83d503a7971895254efa9e79cf15ba1850d4 (diff) |
safe_strtoXX interface proved to be a bit unconvenient.
Remove it, introduce saner bb_strtoXX.
Saved ~350 bytes.
Diffstat (limited to 'libbb/procps.c')
-rw-r--r-- | libbb/procps.c | 3 |
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) free_procps_scan(sp); return NULL; } - if (safe_strtou(entry->d_name, &pid)) + pid = bb_strtou(entry->d_name, NULL, 10); + if (errno) continue; /* After this point we have to break, not continue |