about summary refs log tree commit diff
path: root/custom_mutators/gramatron/test.c
diff options
context:
space:
mode:
authorcarpintero-de-c <175505615+carpintero-de-c@users.noreply.github.com>2024-07-14 03:55:58 +0530
committerGitHub <noreply@github.com>2024-07-14 00:25:58 +0200
commit7c380a6612f00e4a7ed02364dc2b3769e8edc8f8 (patch)
treefd78a050b4fa1372f6d023f10f3513a76e1ee769 /custom_mutators/gramatron/test.c
parent3f26818d973c4929857977b7cdfcf26cc0a84eb3 (diff)
downloadafl++-7c380a6612f00e4a7ed02364dc2b3769e8edc8f8.tar.gz
Replace gettimeofday with clock_gettime (#2159)
Diffstat (limited to 'custom_mutators/gramatron/test.c')
-rw-r--r--custom_mutators/gramatron/test.c23
1 files changed, 10 insertions, 13 deletions
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) {