]> granicus.if.org Git - procps-ng/commit
library: miscellaneous minor accumulated <pids> tweaks
authorJim Warner <james.warner@comcast.net>
Wed, 7 Oct 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Fri, 9 Oct 2015 10:33:14 +0000 (21:33 +1100)
commit0354fc1c8fd672f262303fac2d98e9f4af43a3e4
treefb07d73a5725b40a7c204805c8058cec080dfb02
parent584028dbe513127ef68c55aa631480454bcc26bf
library: miscellaneous minor accumulated <pids> tweaks

This patch contains the following minor modifications:

. When assigning to boot_seconds from a double, a cast
to 'unsigned long' was employed that in reality should
have been 'unsigned long long'. But, on second thought
it's probably best if the compiler makes the decision.

. Results for ID_TGID do not require an 'f_status' flg
since both tid and tgid will be available by virtue of
the 'simple_nextpid' function normal operations. Thus,
that flag has been removed from the <pids> Item_table.

. When the pids_stacks structure was eliminated with a
change to the alloc/dealloc functions in the reference
below, several casts became redundant and are removed.

Reference(s):
commit 747dfc5987e6e91ea3a8575de307e2892790c598.

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