top: get rid of on-stack variable buffers, use permanent one.
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 8 Sep 2007 17:34:05 +0000 (17:34 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 8 Sep 2007 17:34:05 +0000 (17:34 +0000)
commitbacc7eed6535d33d6c50d4def638f74b12d069fa
tree9676ad98bca2d41581406e7ccebbbd069f4d74cc
parenta36277f8a67cc42fd360af55d9f45fd35f7861b2
top: get rid of on-stack variable buffers, use permanent one.
code shrank with and without TOPMEM:

top_main                                             828     844     +16
display_process_list                                1525    1473     -52
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 16/-52)            Total: -36 bytes

top_main                                            1150    1171     +21
display_topmem_process_list                         1150    1167     +17
display_process_list                                1525    1473     -52
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 38/-52)            Total: -14 bytes

git-svn-id: svn://busybox.net/trunk/busybox@19804 69ca8d6d-28ef-0310-b511-8ec308f3f277
include/platform.h
procps/top.c