diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2016-11-24 18:09:43 +0100 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2017-02-13 09:34:44 +0800 |
| commit | 5e82dd3560534368389b68708ae42d41229711d5 (patch) | |
| tree | 43b3d1cd44c777387f4242b53cebb5c425b95cc7 /validation | |
| parent | 66140b83fec0b43643b15b6b6be79d33839eb21f (diff) | |
| download | sparse-dev-5e82dd3560534368389b68708ae42d41229711d5.tar.gz | |
testsuite: simplify test function-pointer-inheritance
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>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/function-pointer-modifier-inheritance.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/validation/function-pointer-modifier-inheritance.c b/validation/function-pointer-modifier-inheritance.c index 3428715a..13df6ff7 100644 --- a/validation/function-pointer-modifier-inheritance.c +++ b/validation/function-pointer-modifier-inheritance.c @@ -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; } |
