Coccinelle output
Coccinelle output
Posted Oct 22, 2015 9:22 UTC (Thu) by mfrw (subscriber, #100251)In reply to: Coccinelle output by bou6
Parent article: Semantic patching with Coccinelle
add the option --in-place to spatch.
$ spatch --sp-file test.cocci --in-place test.c
By default spatch just prints the output on the standard output, by this it will change the file also
$ spatch --sp-file test.cocci --in-place test.c
By default spatch just prints the output on the standard output, by this it will change the file also