shithub: c9

Download patch

ref: 5d45df11f046837602bebbdc22ebe74c031a8116
parent: ccbf4c390afd940d21e4f5e5897a8c9d1d5ed1b1
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Apr 24 05:33:46 EDT 2019

make aux pointer has its own user-defined type

--- a/c9.h
+++ b/c9.h
@@ -1,3 +1,5 @@
+struct C9aux;
+
 typedef struct C9r C9r;
 typedef struct C9t C9t;
 typedef struct C9stat C9stat;
@@ -291,7 +293,7 @@
 	void (*error)(const char *fmt, ...) __attribute__((nonnull(1)));
 
 	/* Auxiliary data, can be used by any of above callbacks. */
-	void *aux;
+	struct C9aux *aux;
 
 	/* private stuff */
 	uint32_t msize;