git » libfiu » commit ddf8acd

preload/posix: Remove unnecessary parameter in mkwrap_def

author Alberto Bertogli
2018-09-26 20:11:07 UTC
committer Alberto Bertogli
2018-09-26 20:11:07 UTC
parent 88bec5780f87c8d26e9f0b68f243fe3517891064

preload/posix: Remove unnecessary parameter in mkwrap_def

preload/posix/codegen.h +2 -2

diff --git a/preload/posix/codegen.h b/preload/posix/codegen.h
index 8cbabaa..5ca27a8 100644
--- a/preload/posix/codegen.h
+++ b/preload/posix/codegen.h
@@ -95,7 +95,7 @@ void set_ferror(void * stream);
 	}
 
 /* Generates the definition part of the wrapped function. */
-#define mkwrap_def(RTYPE, NAME, PARAMS, PARAMST) \
+#define mkwrap_def(RTYPE, NAME, PARAMS) \
 	RTYPE NAME PARAMS					\
 	{ 							\
 		RTYPE r;					\
@@ -125,7 +125,7 @@ void set_ferror(void * stream);
 /* Generates the common top for most functions (init + def + body called) */
 #define mkwrap_top(RTYPE, NAME, PARAMS, PARAMSN, PARAMST, ON_ERR) \
 	mkwrap_init(RTYPE, NAME, PARAMS, PARAMST) \
-	mkwrap_def(RTYPE, NAME, PARAMS, PARAMST) \
+	mkwrap_def(RTYPE, NAME, PARAMS) \
 	mkwrap_body_called(NAME, PARAMSN, ON_ERR)
 
 /* Generates the body of the function for normal, non-errno usage. The return