From 6691ce943a256e17967d613eca118ed051031f8e Mon Sep 17 00:00:00 2001 From: Kuang-che Wu Date: Thu, 10 Apr 2025 09:55:54 +0800 Subject: [PATCH] remove unused variable --- src/afl-common.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/afl-common.c b/src/afl-common.c index 892745a7..059d14d3 100644 --- a/src/afl-common.c +++ b/src/afl-common.c @@ -977,11 +977,10 @@ void read_bitmap(u8 *fname, u8 *map, size_t len) { inline u64 get_cur_time(void) { - struct timeval tv; - struct timezone tz; + struct timeval tv; // TO NOT REPLACE WITH clock_gettime!!! - gettimeofday(&tv, &tz); + gettimeofday(&tv, NULL); return (tv.tv_sec * 1000ULL) + (tv.tv_usec / 1000); @@ -991,11 +990,10 @@ inline u64 get_cur_time(void) { inline u64 get_cur_time_us(void) { - struct timeval tv; - struct timezone tz; + struct timeval tv; // TO NOT REPLACE WITH clock_gettime!!! - gettimeofday(&tv, &tz); + gettimeofday(&tv, NULL); return (tv.tv_sec * 1000000ULL) + tv.tv_usec;