From 59027c94f50a0d983a2bf0ebb72ef406b4fef20d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 27 Mar 2017 12:12:42 +0000 Subject: Make sure avltree indices (in s6-ps) are uint32_t --- src/minutils/s6ps_otree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/minutils/s6ps_otree.c') 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]++ ; -- cgit v1.2.3