[GRASS-SVN] r36720 - grass-addons/raster/r.terracost
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 13 15:14:56 EDT 2009
Author: neteler
Date: 2009-04-13 15:14:56 -0400 (Mon, 13 Apr 2009)
New Revision: 36720
Modified:
grass-addons/raster/r.terracost/initialize.cc
Log:
declare mapset const
Modified: grass-addons/raster/r.terracost/initialize.cc
===================================================================
--- grass-addons/raster/r.terracost/initialize.cc 2009-04-13 16:11:00 UTC (rev 36719)
+++ grass-addons/raster/r.terracost/initialize.cc 2009-04-13 19:14:56 UTC (rev 36720)
@@ -128,7 +128,7 @@
FCELL f;
/* Find cost map raster file */
- char *mapset;
+ const char *mapset;
mapset = G_find_cell (cellname, "");
if (mapset == NULL)
G_fatal_error ("cell file [%s] not found", cellname);
@@ -139,7 +139,7 @@
//Added by tom hazel 7 July 2004
/* Find source map raster file */
- char *mapsetSource;
+ const char *mapsetSource;
mapsetSource = G_find_cell (sourcename, "");
if (mapsetSource == NULL)
G_fatal_error ("cell file [%s] not found", sourcename);
@@ -266,7 +266,7 @@
costStructure costStruct;
/* Find cost map raster file */
- char *mapset;
+ const char *mapset;
mapset = G_find_cell (cellname, "");
if (mapset == NULL)
G_fatal_error ("cell file [%s] not found", cellname);
@@ -277,7 +277,7 @@
//Added by tom hazel 7 July 2004
/* Find source map raster file */
- char *mapsetSource;
+ const char *mapsetSource;
mapsetSource = G_find_cell (sourcename, "");
if (mapsetSource == NULL)
G_fatal_error ("cell file [%s] not found", sourcename);
More information about the grass-commit
mailing list