You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2012/04/19 19:22:04 UTC

svn commit: r1328050 - /subversion/trunk/subversion/libsvn_client/commit.c

Author: hwright
Date: Thu Apr 19 17:22:03 2012
New Revision: 1328050

URL: http://svn.apache.org/viewvc?rev=1328050&view=rev
Log:
* subversion/libsvn_client/commit.c
  (get_filtered_children): Rename basename to base_name to avoid clash with
    a POSIX function.

Modified:
    subversion/trunk/subversion/libsvn_client/commit.c

Modified: subversion/trunk/subversion/libsvn_client/commit.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/commit.c?rev=1328050&r1=1328049&r2=1328050&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/commit.c (original)
+++ subversion/trunk/subversion/libsvn_client/commit.c Thu Apr 19 17:22:03 2012
@@ -303,15 +303,15 @@ get_filtered_children(apr_hash_t **child
 
   for (hi = apr_hash_first(scratch_pool, dirents); hi; hi = apr_hash_next(hi))
     {
-      const char *basename = svn__apr_hash_index_key(hi);
+      const char *base_name = svn__apr_hash_index_key(hi);
       const svn_io_dirent2_t *dirent = svn__apr_hash_index_val(hi);
       const char *local_abspath;
 
       svn_pool_clear(iterpool);
 
-      local_abspath = svn_dirent_join(dir_abspath, basename, iterpool);
+      local_abspath = svn_dirent_join(dir_abspath, base_name, iterpool);
 
-      if (svn_wc_is_adm_dir(basename, iterpool))
+      if (svn_wc_is_adm_dir(base_name, iterpool))
         {
           /* If someone's trying to import a directory named the same
              as our administrative directories, that's probably not
@@ -322,7 +322,7 @@ get_filtered_children(apr_hash_t **child
           if (ctx->notify_func2)
             {
               svn_wc_notify_t *notify
-                = svn_wc_create_notify(svn_dirent_join(local_abspath, basename,
+                = svn_wc_create_notify(svn_dirent_join(local_abspath, base_name,
                                                        iterpool),
                                        svn_wc_notify_skip, iterpool);
               notify->kind = svn_node_dir;
@@ -332,19 +332,19 @@ get_filtered_children(apr_hash_t **child
               (*ctx->notify_func2)(ctx->notify_baton2, notify, iterpool);
             }
 
-          apr_hash_set(dirents, basename, APR_HASH_KEY_STRING, NULL);
+          apr_hash_set(dirents, base_name, APR_HASH_KEY_STRING, NULL);
           continue;
         }
             /* If this is an excluded path, exclude it. */
       if (apr_hash_get(excludes, local_abspath, APR_HASH_KEY_STRING))
         {
-          apr_hash_set(dirents, basename, APR_HASH_KEY_STRING, NULL);
+          apr_hash_set(dirents, base_name, APR_HASH_KEY_STRING, NULL);
           continue;
         }
 
-      if (ignores && svn_wc_match_ignore_list(basename, ignores, iterpool))
+      if (ignores && svn_wc_match_ignore_list(base_name, ignores, iterpool))
         {
-          apr_hash_set(dirents, basename, APR_HASH_KEY_STRING, NULL);
+          apr_hash_set(dirents, base_name, APR_HASH_KEY_STRING, NULL);
           continue;
         }
 
@@ -357,7 +357,7 @@ get_filtered_children(apr_hash_t **child
 
           if (filter)
             {
-              apr_hash_set(dirents, basename, APR_HASH_KEY_STRING, NULL);
+              apr_hash_set(dirents, base_name, APR_HASH_KEY_STRING, NULL);
               continue;
             }
         }