From 7c380a6612f00e4a7ed02364dc2b3769e8edc8f8 Mon Sep 17 00:00:00 2001 From: carpintero-de-c <175505615+carpintero-de-c@users.noreply.github.com> Date: Sun, 14 Jul 2024 03:55:58 +0530 Subject: Replace gettimeofday with clock_gettime (#2159) --- custom_mutators/gramatron/test.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'custom_mutators/gramatron/test.c') diff --git a/custom_mutators/gramatron/test.c b/custom_mutators/gramatron/test.c index 0dfbc197..3577faa1 100644 --- a/custom_mutators/gramatron/test.c +++ b/custom_mutators/gramatron/test.c @@ -8,8 +8,8 @@ state *create_pda(u8 *automaton_file) { struct json_object *parsed_json; - state * pda; - json_object * source_obj, *attr; + state *pda; + json_object *source_obj, *attr; int arraylen, ii, ii2, trigger_len, error; printf("\n[GF] Automaton file passed:%s", automaton_file); @@ -41,7 +41,7 @@ state *create_pda(u8 *automaton_file) { enum json_type type; json_object_object_foreach(source_obj, key, val) { - state * state_ptr; + state *state_ptr; trigger *trigger_ptr; int offset; @@ -97,12 +97,12 @@ state *create_pda(u8 *automaton_file) { void SanityCheck(char *automaton_path) { - state * pda = create_pda(automaton_path); + state *pda = create_pda(automaton_path); int count = 0, state; Get_Dupes_Ret *getdupesret; - IdxMap_new * statemap; - IdxMap_new * statemap_ptr; - terminal * term_ptr; + IdxMap_new *statemap; + IdxMap_new *statemap_ptr; + terminal *term_ptr; while (count < NUMINPUTS) { @@ -117,12 +117,9 @@ void SanityCheck(char *automaton_path) { int main(int argc, char *argv[]) { - char * mode; - char * automaton_path; - char * output_dir = NULL; - struct timeval tv; - struct timeval tz; - // gettimeofday(&tv, &tz); + char *mode; + char *automaton_path; + char *output_dir = NULL; srand(1337); if (argc == 3) { -- cgit 1.4.1