On Fri, 2017-04-21 at 23:22 +0200, Julia Lawall wrote:

> > @@
> > identifier fn;
> > fresh identifier wrap_fn = "_wrap_" ## fn;
> > @@
> > +static int wrap_fn(struct sk_buff *skb, struct genl_info *info)
> > +{
> > +       return fn(skb, info);
> > +}
> > +
> 
> Use ++ instead.  You may need to put the new function all on one
> line.

Indeed, that works (and yes, I had to put it on a single line)

Thanks!

johannes
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to