@@ -1,15 +1,6 @@
-struct sk_buff;
-struct sock;
+extern int foo(int f(int, void *));
-extern int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb,
- int getfrag(void *from, char *to, int offset,
- int len,int odd, struct sk_buff *skb),
- void *from, int length);
-
-int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb,
- int (*getfrag)(void *from, char *to, int offset,
- int len,int odd, struct sk_buff *skb),
- void *from, int length)
+int foo(int (*f)(int, void *))
{
return 0;
}
The function used had so much args that it was hard to see what's the difference between them. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- validation/function-pointer-modifier-inheritance.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-)