diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-01 23:20:37 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-01 23:20:37 +0300 |
commit | dd539f76877000e333796da8f30ea760c080a69a (patch) | |
tree | 26f8642cd9e8cc1c2ca0b75a6b20801863b4e2cf /libbb/procps.c | |
parent | 92258541449581302e180d05e827e27d35030a18 (diff) |
Unneeded code removed, usused field "unsigned pscpu" removed
Diffstat (limited to 'libbb/procps.c')
-rw-r--r-- | libbb/procps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index 15a1cf74b..9d73fc4b7 100644 --- a/libbb/procps.c +++ b/libbb/procps.c @@ -36,13 +36,13 @@ procps_status_t * procps_scan(int save_user_arg0) struct dirent *entry; char *name; - int n; - char status[32]; - char *status_tail; char buf[PROCPS_BUFSIZE]; + char status[sizeof("/proc//cmdline") + sizeof(int)*3]; + char *status_tail; procps_status_t curstatus; - int pid; long tasknice; + int pid; + int n; struct stat sb; if (!dir) { |