subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1664141 - /subversion/trunk/subversion/libsvn_repos/rev_hunt.c
Date Wed, 04 Mar 2015 20:57:45 GMT
Author: ivan
Date: Wed Mar  4 20:57:45 2015
New Revision: 1664141

URL: http://svn.apache.org/r1664141
Log:
Simplify code a bit.

* subversion/libsvn_repos/rev_hunt.c
  (svn_repos_trace_node_locations): Use svn_sort__array() helper to sort
   APR array.

Modified:
    subversion/trunk/subversion/libsvn_repos/rev_hunt.c

Modified: subversion/trunk/subversion/libsvn_repos/rev_hunt.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/rev_hunt.c?rev=1664141&r1=1664140&r2=1664141&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/rev_hunt.c (original)
+++ subversion/trunk/subversion/libsvn_repos/rev_hunt.c Wed Mar  4 20:57:45 2015
@@ -669,8 +669,7 @@ svn_repos_trace_node_locations(svn_fs_t
   /* First - let's sort the array of the revisions from the greatest revision
    * downward, so it will be easier to search on. */
   location_revisions = apr_array_copy(pool, location_revisions_orig);
-  qsort(location_revisions->elts, location_revisions->nelts,
-        sizeof(*revision_ptr), svn_sort_compare_revisions);
+  svn_sort__array(location_revisions, svn_sort_compare_revisions);
 
   revision_ptr = (svn_revnum_t *)location_revisions->elts;
   revision_ptr_end = revision_ptr + location_revisions->nelts;



Mime
View raw message