[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH][merge-tracking] no need to pass 'key' to apr_hash_this if we don't need key

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-11-22 13:40:33 CET

Hi All,
Find the attached patch and log.

With regards
Kamesh Jayachandran


No need to pass 'key' to apr_hash_this as we don't need it.

* subversion/libsvn_subr/mergeinfo.c
   remove 'key' as we don't need it.

Patch by: Kamesh Jayachandran <kamesh@collab.net>

Index: subversion/libsvn_subr/mergeinfo.c
--- subversion/libsvn_subr/mergeinfo.c (revision 22389)
+++ subversion/libsvn_subr/mergeinfo.c (working copy)
@@ -788,14 +788,12 @@
 svn_mergeinfo_sort(apr_hash_t *input, apr_pool_t *pool)
   apr_hash_index_t *hi;
- const void *key;
   void *val;
   for (hi = apr_hash_first(pool, input); hi; hi = apr_hash_next(hi))
       apr_array_header_t *rl;
- apr_hash_this(hi, &key, NULL, &val);
+ apr_hash_this(hi, NULL, NULL, &val);
       rl = val;
       qsort(rl->elts, rl->nelts, rl->elt_size, svn_sort_compare_ranges);

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 22 13:40:53 2006

This is an archived mail posted to the Subversion Dev mailing list.