[GRASS-SVN] r39325 - grass-addons/raster/r.stream.basins
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 29 06:43:08 EDT 2009
Author: jarekj71
Date: 2009-09-29 06:43:08 -0400 (Tue, 29 Sep 2009)
New Revision: 39325
Modified:
grass-addons/raster/r.stream.basins/io.c
Log:
removing bug
Modified: grass-addons/raster/r.stream.basins/io.c
===================================================================
--- grass-addons/raster/r.stream.basins/io.c 2009-09-29 10:42:47 UTC (rev 39324)
+++ grass-addons/raster/r.stream.basins/io.c 2009-09-29 10:43:08 UTC (rev 39325)
@@ -98,17 +98,17 @@
{
char *cur_mapset;
CELL c_min, c_max;
- struct Range *stream_range;
+ struct Range stream_range;
- G_init_range(stream_range);
+ G_init_range(&stream_range);
cur_mapset = G_find_cell2(in_streams, "");
- G_read_range(in_streams, cur_mapset, stream_range);
- G_get_range_min_max(stream_range, &c_min, &c_max);
+ G_read_range(in_streams, cur_mapset, &stream_range);
+ G_get_range_min_max(&stream_range, &c_min, &c_max);
return c_max;
} /* end_max_link */
-int write_chatchment()
+int write_chatchment(void)
{
int r;
int fdo = 0;
More information about the grass-commit
mailing list