shithub: fuzz

Download patch

ref: 6a7f8345faf9e90091a06b2263e2729c13835b64
parent: 6426bdf8e02d9028cf1b8df715f93c7126686cb4
author: seh <seh@localhost>
date: Sat Nov 10 10:16:25 EST 2018

fix hjsync ;; move proto

--- a/fuzz.h
+++ b/fuzz.h
@@ -109,5 +109,6 @@
 
 // input.c
 void	fuzz(caller*);
+void	hjsync(void);
 
 #endif
--- a/input.c
+++ b/input.c
@@ -1,7 +1,5 @@
 #include "fuzz.h"
 
-void hjsync(void);
-
 // Procedurally generate input to syscall
 void
 fuzz(caller *sc)
@@ -167,6 +165,6 @@
 {
 	// open file and write to sync disk
 	int hjfs = open("/srv/hjfs.cmd", OWRITE);
-	fprint(hjfs, "sync");
+	fprint(hjfs, "sync\n");
 	close(hjfs);
 }
--- a/mutate.h
+++ b/mutate.h
@@ -1,11 +1,11 @@
 #ifndef MUT_H
 #define MUT_H
 
-void mut_int(int* in_val);
+void mut_int(int*);
 
-void mut_uint(uint* in_val);
+void mut_uint(uint*);
 
-void mut_char(char* in_val);
+void mut_char(char*);
 
 void mut_char_star();
 
@@ -13,21 +13,21 @@
 
 void mut_char_star_arr();
 
-void mut_long(long* in_val);
+void mut_long(long*);
 
 void mut_long_star();
 
-void mut_ulong(ulong* in_val);
+void mut_ulong(ulong*);
 
-void mut_vlong(vlong* in_val);
+void mut_vlong(vlong*);
 
 void mut_void_star();
 
-void mut_IOchunk(IOchunk* in_val);
+void mut_IOchunk(IOchunk*);
 
 void mut_IOchunk_star();
 
-void mut_dir(Dir* in_val);
+void mut_dir(Dir*);
 
 void mut_dir_star();