[GRASS-SVN] r71255 - grass/trunk/raster/r.clump

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 10 14:32:27 PDT 2017


Author: mmetz
Date: 2017-07-10 14:32:27 -0700 (Mon, 10 Jul 2017)
New Revision: 71255

Modified:
   grass/trunk/raster/r.clump/clump.c
Log:
r.clump: fix arg type for time() fn

Modified: grass/trunk/raster/r.clump/clump.c
===================================================================
--- grass/trunk/raster/r.clump/clump.c	2017-07-10 21:24:51 UTC (rev 71254)
+++ grass/trunk/raster/r.clump/clump.c	2017-07-10 21:32:27 UTC (rev 71255)
@@ -186,7 +186,7 @@
     int row;
     int len;
     int nalloc;
-    long cur_time;
+    time_t cur_time;
     char *cname;
     int cfd, csize;
 
@@ -418,7 +418,7 @@
     int isnull;
     int len;
     int nalloc;
-    long cur_time;
+    time_t cur_time;
     char *cname;
     int cfd, csize;
 
@@ -681,14 +681,14 @@
     return 0;
 }
 
-int print_time(long *start)
+int print_time(time_t *start)
 {
     int hours, minutes, seconds;
-    long done;
+    time_t done;
 
     time(&done);
 
-    seconds = done - *start;
+    seconds = (int)(done - *start);
     *start = done;
 
     hours = seconds / 3600;



More information about the grass-commit mailing list