]> granicus.if.org Git - procps-ng/commit
library: make the pids_sort_order enums more intuitive
authorJim Warner <james.warner@comcast.net>
Sun, 13 Sep 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 21 Sep 2015 12:39:40 +0000 (22:39 +1000)
commit86b155b83f5db87fb18a9bc677c6718963c7451d
treeb28f72287b898e8229267b43995ebd524c2988f4
parent872be3a3a2e485c65f3def3d1f13fb2acc46cdfe
library: make the pids_sort_order enums more intuitive

The values of PROCPS_SORT_ASCEND & PROCPS_SORT_DESCEND
were a tad unintuitive. This patch will just make them
a more natural +1 for ascending and -1 for descending.

[ plus it still allows that fast path multiplication ]
[ instead of a comparison for signed numbers/strings ]

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