[GRASS-SVN] r39694 - grass/branches/develbranch_6/vector/v.label.sa

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 8 22:12:47 EST 2009


Author: hamish
Date: 2009-11-08 22:12:47 -0500 (Sun, 08 Nov 2009)
New Revision: 39694

Modified:
   grass/branches/develbranch_6/vector/v.label.sa/labels.c
Log:
fix compiler warnings

Modified: grass/branches/develbranch_6/vector/v.label.sa/labels.c
===================================================================
--- grass/branches/develbranch_6/vector/v.label.sa/labels.c	2009-11-09 03:09:19 UTC (rev 39693)
+++ grass/branches/develbranch_6/vector/v.label.sa/labels.c	2009-11-09 03:12:47 UTC (rev 39694)
@@ -65,13 +65,13 @@
 
     label_sz = Vect_get_num_primitives(&Map, legal_types);
 
-    G_debug(1, "Need to allocate %ld bytes of memory",
+    G_debug(1, "Need to allocate %u bytes of memory",
 	    sizeof(label_t) * label_sz);
     labels = (label_t *) G_malloc(sizeof(label_t) * label_sz);
     G_debug(1, "labels=%p", labels);
 
     if (labels == NULL)
-	G_fatal_error(_("Cannot allocate %ld bytes of memory"),
+	G_fatal_error(_("Cannot allocate %u bytes of memory"),
 		      sizeof(label_t) * label_sz);
 
     /* open database */
@@ -127,7 +127,7 @@
 
 	if (i == label_sz) {	/* we need more memory */
 	    label_sz += 100;
-	    G_debug(1, "Need to resize %p to %ld bytes of memory",
+	    G_debug(1, "Need to resize %p to %u bytes of memory",
 		    (void *)labels, sizeof(label_t) * label_sz);
 	    labels = G_realloc(labels, sizeof(label_t) * label_sz);
 	    if (labels == NULL) {



More information about the grass-commit mailing list