diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-27 12:12:42 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-27 12:12:42 +0000 |
commit | 59027c94f50a0d983a2bf0ebb72ef406b4fef20d (patch) | |
tree | 18a2e2e1945ffd3d673c1bdc25b76d93dcf317d5 /src/minutils/s6ps_otree.c | |
parent | 54d4b6e74bf539930db2cafbe075416894900076 (diff) | |
download | s6-linux-utils-59027c94f50a0d983a2bf0ebb72ef406b4fef20d.tar.gz s6-linux-utils-59027c94f50a0d983a2bf0ebb72ef406b4fef20d.tar.xz s6-linux-utils-59027c94f50a0d983a2bf0ebb72ef406b4fef20d.zip |
Make sure avltree indices (in s6-ps) are uint32_t
Diffstat (limited to 'src/minutils/s6ps_otree.c')
-rw-r--r-- | src/minutils/s6ps_otree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/minutils/s6ps_otree.c b/src/minutils/s6ps_otree.c index 0f7ccf1..f7952ab 100644 --- a/src/minutils/s6ps_otree.c +++ b/src/minutils/s6ps_otree.c @@ -59,7 +59,7 @@ void s6ps_otree (pscan_t *p, unsigned int n, avltreen *pidtree, unsigned int *or /* Compute the ppid tree */ for (i = 0 ; i < n ; i++) { - unsigned int k ; + uint32_t k ; if (!avltreen_search(pidtree, &p[i].ppid, &k)) k = n-1 ; orderedlist[i] = k ; /* using orderedlist as ppindex */ nchild[k]++ ; |