[PATCH] Fix warnings from icc
[fio.git] / time.c
diff --git a/time.c b/time.c
index 6c9eb0a894c951b08b09ad653594a8884fc13bbf..d0ecbe5c831af59f857164af9fa433d96eaceda0 100644 (file)
--- a/time.c
+++ b/time.c
@@ -7,7 +7,7 @@ static struct timeval genesis;
 
 unsigned long utime_since(struct timeval *s, struct timeval *e)
 {
 
 unsigned long utime_since(struct timeval *s, struct timeval *e)
 {
-       double sec, usec;
+       long sec, usec;
 
        sec = e->tv_sec - s->tv_sec;
        usec = e->tv_usec - s->tv_usec;
 
        sec = e->tv_sec - s->tv_sec;
        usec = e->tv_usec - s->tv_usec;
@@ -31,7 +31,7 @@ unsigned long utime_since_now(struct timeval *s)
 
 unsigned long mtime_since(struct timeval *s, struct timeval *e)
 {
 
 unsigned long mtime_since(struct timeval *s, struct timeval *e)
 {
-       double sec, usec;
+       long sec, usec;
 
        sec = e->tv_sec - s->tv_sec;
        usec = e->tv_usec - s->tv_usec;
 
        sec = e->tv_sec - s->tv_sec;
        usec = e->tv_usec - s->tv_usec;