[GRASS-SVN] r59771 - grass/branches/releasebranch_6_4/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 17 11:17:24 PDT 2014


Author: mmetz
Date: 2014-04-17 11:17:23 -0700 (Thu, 17 Apr 2014)
New Revision: 59771

Modified:
   grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c
Log:
Vlib: fix linkm usage

Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c	2014-04-17 18:17:08 UTC (rev 59770)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c	2014-04-17 18:17:23 UTC (rev 59771)
@@ -36,7 +36,7 @@
 static int comp_double(double *, double *);
 static int V__within(double, double, double);
 int Vect__intersect_line_with_poly();
-static void destroy_links(struct Slink *);
+static void destroy_links(struct link_head *, struct Slink *);
 static int Vect__divide_and_conquer(struct Slink *, struct line_pnts *,
 				    struct link_head *, double *, double *,
 				    int);
@@ -228,7 +228,7 @@
     *Y = cent_y;		/* pick line segment (x_min, cent_y) - (x_max, cent_y) */
     ret = Vect__divide_and_conquer(Head, Points, Token, X, Y, 10);
 
-    destroy_links(Head);
+    destroy_links(Token, Head);
 
     if (ret < 0) {
 	G_warning("Vect_get_point_in_poly(): %s",
@@ -303,7 +303,7 @@
     return Vect__divide_and_conquer(Head, Points, Token, X, Y, --levels);
 }
 
-static void destroy_links(struct Slink *Head)
+static void destroy_links(struct link_head *Token, struct Slink *Head)
 {
     struct Slink *p, *tmp;
 
@@ -311,7 +311,7 @@
 
     while (p != NULL) {
 	tmp = p->next;
-	link_dispose((struct link_head *)Head, (VOID_T *) p);
+	link_dispose(Token, (VOID_T *) p);
 	p = tmp;
     }
 }



More information about the grass-commit mailing list