]> granicus.if.org Git - procps-ng/commitdiff
library: rename the 'procps_pids_stacks_sort' function
authorJim Warner <james.warner@comcast.net>
Sun, 11 Oct 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 14 Oct 2015 10:47:04 +0000 (21:47 +1100)
The above function was the sole public function in the
<pids> interface to use the word 'stacks' in its name.
All of the others dealt exclusively with their duties,

So this commit normalizes that outlier by renaming it.

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

index 6561cf482b77c2b693cb8ead6f122c5cbf008375..997bd69980f13123d7518b337f7f579dc58c511b 100644 (file)
@@ -48,7 +48,7 @@ global:
        procps_pids_ref;
        procps_pids_reset;
        procps_pids_select;
-       procps_pids_stacks_sort;
+       procps_pids_sort;
        procps_pids_unref;
        procps_slabinfo_new;
        procps_slabinfo_read;
index a89938c5fb02e05b37ad2a8016f23d3b468a4a68..8956c323cc3183ee5c2cc5a67d579ca4a49c5413 100644 (file)
@@ -1388,7 +1388,7 @@ PROCPS_EXPORT struct pids_reap *procps_pids_select (
 
 
 /*
- * procps_pids_stacks_sort():
+ * procps_pids_sort():
  *
  * Sort stacks anchored in the passed pids_stack pointers array
  * based on the designated sort enumerator and specified order.
@@ -1397,7 +1397,7 @@ PROCPS_EXPORT struct pids_reap *procps_pids_select (
  *
  * Note: all of the stacks must be homogeneous (of equal length and content).
  */
-PROCPS_EXPORT struct pids_stack **procps_pids_stacks_sort (
+PROCPS_EXPORT struct pids_stack **procps_pids_sort (
         struct procps_pidsinfo *info,
         struct pids_stack *stacks[],
         int numstacked,
@@ -1435,7 +1435,7 @@ PROCPS_EXPORT struct pids_stack **procps_pids_stacks_sort (
 
     qsort_r(stacks, numstacked, sizeof(void *), (QSR_t)Item_table[p->item].sortfunc, &parms);
     return stacks;
-} // end: procps_pids_stacks_sort
+} // end: procps_pids_sort
 
 
 PROCPS_EXPORT int procps_pids_unref (
index cc9e3b84e3ea1e45f4dc9a5dc71815cddc82d9ef..e6c30725ea224d78643ad5c607f80a8d9618728f 100644 (file)
@@ -230,7 +230,7 @@ struct pids_reap *procps_pids_select (
     int maxthese,
     enum pids_fill_type which);
 
-struct pids_stack **procps_pids_stacks_sort (
+struct pids_stack **procps_pids_sort (
     struct procps_pidsinfo *info,
     struct pids_stack *stacks[],
     int numstacked,