You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2010/03/25 20:16:25 UTC

svn commit: r927547 - /subversion/trunk/subversion/libsvn_subr/skel.c

Author: gstein
Date: Thu Mar 25 19:16:25 2010
New Revision: 927547

URL: http://svn.apache.org/viewvc?rev=927547&view=rev
Log:
Avoid some compiler warnings.

* subversion/libsvn_subr/skel.c:
  (svn_skel__append): rename LIST to LIST_SKEL. add a cast to avoid const
    warnings.

Modified:
    subversion/trunk/subversion/libsvn_subr/skel.c

Modified: subversion/trunk/subversion/libsvn_subr/skel.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/skel.c?rev=927547&r1=927546&r2=927547&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/skel.c (original)
+++ subversion/trunk/subversion/libsvn_subr/skel.c Thu Mar 25 19:16:25 2010
@@ -610,20 +610,20 @@ void svn_skel__prepend_str(const char *v
 }
 
 
-void svn_skel__append(svn_skel_t *list, const svn_skel_t *skel)
+void svn_skel__append(svn_skel_t *list_skel, const svn_skel_t *skel)
 {
-  SVN_ERR_ASSERT_NO_RETURN(list != NULL && !list->is_atom);
+  SVN_ERR_ASSERT_NO_RETURN(list_skel != NULL && !list_skel->is_atom);
 
-  if (list->children == NULL)
+  if (list_skel->children == NULL)
     {
-      list->children = skel;
+      list_skel->children = (svn_skel_t *)skel;
     }
   else
     {
-      list = list->children;
-      while (list->next != NULL)
-        list = list->next;
-      list->next = skel;
+      list_skel = list_skel->children;
+      while (list_skel->next != NULL)
+        list_skel = list_skel->next;
+      list_skel->next = (svn_skel_t *)skel;
     }
 }