mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 18:18:07 +00:00
@ -187,9 +187,6 @@ typedef struct aflcc_state {
|
|||||||
u8 need_aflpplib;
|
u8 need_aflpplib;
|
||||||
int passthrough;
|
int passthrough;
|
||||||
|
|
||||||
u8 use_stdin; /* dummy */
|
|
||||||
u8 *argvnull; /* dummy */
|
|
||||||
|
|
||||||
} aflcc_state_t;
|
} aflcc_state_t;
|
||||||
|
|
||||||
void aflcc_state_init(aflcc_state_t *, u8 *argv0);
|
void aflcc_state_init(aflcc_state_t *, u8 *argv0);
|
||||||
|
@ -977,11 +977,10 @@ void read_bitmap(u8 *fname, u8 *map, size_t len) {
|
|||||||
|
|
||||||
inline u64 get_cur_time(void) {
|
inline u64 get_cur_time(void) {
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
|
||||||
|
|
||||||
// TO NOT REPLACE WITH clock_gettime!!!
|
// TO NOT REPLACE WITH clock_gettime!!!
|
||||||
gettimeofday(&tv, &tz);
|
gettimeofday(&tv, NULL);
|
||||||
|
|
||||||
return (tv.tv_sec * 1000ULL) + (tv.tv_usec / 1000);
|
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) {
|
inline u64 get_cur_time_us(void) {
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
|
||||||
|
|
||||||
// TO NOT REPLACE WITH clock_gettime!!!
|
// TO NOT REPLACE WITH clock_gettime!!!
|
||||||
gettimeofday(&tv, &tz);
|
gettimeofday(&tv, NULL);
|
||||||
|
|
||||||
return (tv.tv_sec * 1000000ULL) + tv.tv_usec;
|
return (tv.tv_sec * 1000000ULL) + tv.tv_usec;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user