[GRASS-SVN] r58893 - grass/trunk/raster/r.li/r.li.shape

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 5 17:18:23 PST 2014


Author: hamish
Date: 2014-02-05 17:18:23 -0800 (Wed, 05 Feb 2014)
New Revision: 58893

Modified:
   grass/trunk/raster/r.li/r.li.shape/main.c
Log:
minor whitespace

Modified: grass/trunk/raster/r.li/r.li.shape/main.c
===================================================================
--- grass/trunk/raster/r.li/r.li.shape/main.c	2014-02-05 22:33:04 UTC (rev 58892)
+++ grass/trunk/raster/r.li/r.li.shape/main.c	2014-02-06 01:18:23 UTC (rev 58893)
@@ -75,10 +75,13 @@
     if (ad->mask == 1) {
 	if ((mask_fd = open(ad->mask_name, O_RDONLY, 0755)) < 0)
 	    return 0;
+
 	mask_buf = malloc(ad->cl * sizeof(int));
+
 	for (i = 0; i < ad->rl; i++) {
 	    if (read(mask_fd, mask_buf, (ad->cl * sizeof(int))) < 0)
 		return 0;
+
 	    for (k = 0; k < ad->cl; k++) {
 		if (mask_buf[k] == 0) {
 		    null_count++;
@@ -87,7 +90,7 @@
 	}
     }
 
-    /*calculate distance */
+    /* calculate distance */
     G_begin_distance_calculations();
     /* EW Dist at North edge */
     EW_DIST1 = G_distance(hd.east, hd.north, hd.west, hd.north);



More information about the grass-commit mailing list