]> granicus.if.org Git - procps-ng/commit
library: exchange <pids> 'addr' for that 'ul_int' type
authorJim Warner <james.warner@comcast.net>
Wed, 9 Sep 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 21 Sep 2015 12:36:05 +0000 (22:36 +1000)
commitf0e447cc6608edcb72b1e046ae06de45e64d17d5
tree831ba00460375ab0384353ff00d734b54c61ab37
parent105c69164bb14d539bea68e8232ccad7ddfa298a
library: exchange <pids> 'addr' for that 'ul_int' type

Work on converting ps has revealed the desirability of
trading a void pointer for that ul_int type. There was
much arithmetic employed against such values and casts
would otherwise have been required. Even pmap needed a
cast on occasions when comparing an internal variable.

Besides, there is much to be said for reducing demands
on (and the complexity of) the result structure union.

[ we choose ul_int over ull_int since that former is ]
[ the exact same size and capacity as a void pointer ]
[ regardless of whether compiled as 32-bit or 64-bit ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c
proc/pids.h