chiark / gitweb /
shared/cgroup-show: simplify show_pid_array()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Jan 2015 04:09:58 +0000 (23:09 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Jan 2015 06:14:52 +0000 (01:14 -0500)
commit3da7a50f847ce5ea6094927cb51bab7eb1818efd
treed242d8aa5e6d175061a94d4fb60cc64e26546f6a
parent1fa2f38f0f011010bf57522b42fcc168856a7003
shared/cgroup-show: simplify show_pid_array()

int[] should not be used as pid_t[], even if happens to be same thing.
Also deduplicating in a quadratic loop right before sorting is unnecessary.
Remove custom greedy_realloc implementation.
src/shared/cgroup-show.c
src/shared/util.h