[PATCH] blkparse: sparse and friends don't like ULONG_LONG_MAX
authorJens Axboe <axboe@suse.de>
Mon, 10 Oct 2005 14:52:38 +0000 (16:52 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 10 Oct 2005 14:52:38 +0000 (16:52 +0200)
blkparse.c

index b8644b24c2712d2c417feca1eb3b26c893f698fa..8f94a1a8b84463aae5e0c819c6a6d0d6cfc1d613 100644 (file)
@@ -29,7 +29,6 @@
 #include <errno.h>
 #include <signal.h>
 #include <locale.h>
-#include <limits.h>
 
 #include "blktrace.h"
 #include "rbtree.h"
@@ -230,7 +229,7 @@ static unsigned long long genesis_time;
 static unsigned long long last_allowed_time;
 static unsigned int smallest_seq_read;
 static unsigned long long stopwatch_start;     /* start from zero by default */
-static unsigned long long stopwatch_end = ULONG_LONG_MAX;      /* "infinity" */
+static unsigned long long stopwatch_end = -1ULL;       /* "infinity" */
 
 static int per_process_stats;
 static int per_device_and_cpu_stats = 1;