[GRASS-SVN] r71257 - grass/trunk/imagery/i.rectify
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 10 14:47:53 PDT 2017
Author: mmetz
Date: 2017-07-10 14:47:53 -0700 (Mon, 10 Jul 2017)
New Revision: 71257
Modified:
grass/trunk/imagery/i.rectify/readcell.c
Log:
i.rectify: don not shadow a global declaration
Modified: grass/trunk/imagery/i.rectify/readcell.c
===================================================================
--- grass/trunk/imagery/i.rectify/readcell.c 2017-07-10 21:42:06 UTC (rev 71256)
+++ grass/trunk/imagery/i.rectify/readcell.c 2017-07-10 21:47:53 UTC (rev 71257)
@@ -110,14 +110,14 @@
{
int replace = G_lrand48() % c->nblocks;
block *p = &c->blocks[replace];
- int ref = c->refs[replace];
+ int cref = c->refs[replace];
off_t offset = (off_t) idx * sizeof(DCELL) << L2BSIZE;
if (c->fd < 0)
G_fatal_error(_("Internal error: cache miss on fully-cached map"));
- if (ref >= 0)
- c->grid[ref] = NULL;
+ if (cref >= 0)
+ c->grid[cref] = NULL;
c->grid[idx] = p;
c->refs[replace] = idx;
More information about the grass-commit
mailing list