[GRASS-SVN] r34110 - in grass/branches/develbranch_6/raster: r.drain r.info

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 30 14:36:42 EDT 2008


Author: neteler
Date: 2008-10-30 14:36:42 -0400 (Thu, 30 Oct 2008)
New Revision: 34110

Modified:
   grass/branches/develbranch_6/raster/r.drain/main.c
   grass/branches/develbranch_6/raster/r.info/main.c
Log:
compilation fix as suggested by Glynn on grass-dev (merge from trunk, r34108)

Modified: grass/branches/develbranch_6/raster/r.drain/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.drain/main.c	2008-10-30 18:35:52 UTC (rev 34109)
+++ grass/branches/develbranch_6/raster/r.drain/main.c	2008-10-30 18:36:42 UTC (rev 34110)
@@ -300,8 +300,8 @@
     tempfile1 = G_tempfile();
     tempfile2 = G_tempfile();
 
-    fe = open(tempfile1, O_RDWR | O_CREAT);
-    fd = open(tempfile2, O_RDWR | O_CREAT);
+    fe = open(tempfile1, O_RDWR | O_CREAT, 0666);
+    fd = open(tempfile2, O_RDWR | O_CREAT, 0666);
 
     /* transfer the input map to a temp file */
     for (i = 0; i < nrows; i++) {

Modified: grass/branches/develbranch_6/raster/r.info/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.info/main.c	2008-10-30 18:35:52 UTC (rev 34109)
+++ grass/branches/develbranch_6/raster/r.info/main.c	2008-10-30 18:36:42 UTC (rev 34110)
@@ -345,6 +345,10 @@
 	    G_format_easting(cellhd.west, tmp2, cellhd.proj);
 	    fprintf(out, "east=%s\n", tmp1);
 	    fprintf(out, "west=%s\n", tmp2);
+	    G_format_easting(cellhd.top, tmp1, cellhd.proj);
+	    G_format_easting(cellhd.bottom, tmp2, cellhd.proj);
+	    fprintf(out, "top=%s\n", tmp1);
+	    fprintf(out, "bottom=%s\n", tmp2);
 	}
 
 	if (sflag->answer) {



More information about the grass-commit mailing list