[GRASS-SVN] r60399 - grass/branches/develbranch_6/raster/r.in.xyz
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 21 20:03:02 PDT 2014
Author: hamish
Date: 2014-05-21 20:03:02 -0700 (Wed, 21 May 2014)
New Revision: 60399
Modified:
grass/branches/develbranch_6/raster/r.in.xyz/main.c
Log:
drop semi-unused variable, consistent printf type (merge from trunk)
Modified: grass/branches/develbranch_6/raster/r.in.xyz/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.in.xyz/main.c 2014-05-22 03:00:34 UTC (rev 60398)
+++ grass/branches/develbranch_6/raster/r.in.xyz/main.c 2014-05-22 03:03:02 UTC (rev 60399)
@@ -98,14 +98,13 @@
int out_fd;
char *infile, *outmap;
int xcol, ycol, zcol, max_col, percent;
- int do_zfilter;
int method = -1;
int bin_n, bin_min, bin_max, bin_sum, bin_sumsq, bin_index;
double zrange_min, zrange_max, d_tmp;
char *fs; /* field delim */
off_t filesize;
int linesize;
- long estimated_lines;
+ unsigned long estimated_lines;
int from_stdin;
int can_seek;
@@ -296,14 +295,12 @@
zscale = atof(zscale_opt->answer);
/* parse zrange */
- do_zfilter = FALSE;
if (zrange_opt->answer != NULL) {
if (zrange_opt->answers[0] == NULL)
G_fatal_error(_("Invalid zrange"));
sscanf(zrange_opt->answers[0], "%lf", &zrange_min);
sscanf(zrange_opt->answers[1], "%lf", &zrange_max);
- do_zfilter = TRUE;
if (zrange_min > zrange_max) {
d_tmp = zrange_max;
@@ -512,7 +509,7 @@
if (linesize < 6) /* min possible: "0,0,0\n" */
linesize = 6;
estimated_lines = filesize / linesize;
- G_debug(2, "estimated number of lines in file: %ld", estimated_lines);
+ G_debug(2, "estimated number of lines in file: %lu", estimated_lines);
}
else
estimated_lines = -1;
More information about the grass-commit
mailing list