On Tue, 28 Feb 2012, ron minnich wrote:

On Tue, Feb 28, 2012 at 11:39 AM, Michael Stefaniuc <[email protected]> wrote:

@@
identifier d, func;
type T;
@@
 T func(
-       struct drm_device *d
+       void
 );

Interesting. This did not work for me at all.

I had to use my earlier not as nice form.

Works for me:

diff =
--- fdel.c
+++ /tmp/cocci-output-8182-6927a0-fdel.c
@@ -1 +1 @@
-int foo(struct drm_device *a);
+int foo(void);

C code:

int foo(struct drm_device *a);

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to