gettime.h: use time_t instead of size_t for copy of tv_sec
[fio.git] / gettime.h
index eb3537b15b9d7b4fc29155b830e39b9dd108cd7a..86d55bd9d6298b69de406a3d7209184ba786db0a 100644 (file)
--- a/gettime.h
+++ b/gettime.h
@@ -24,7 +24,7 @@ extern struct timeval *fio_tv;
 
 static inline int fio_gettime_offload(struct timeval *tv)
 {
 
 static inline int fio_gettime_offload(struct timeval *tv)
 {
-       size_t last_sec;
+       time_t last_sec;
 
        if (!fio_tv)
                return 0;
 
        if (!fio_tv)
                return 0;