HCoop
/
bpt
/
coccinelle.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Release coccinelle-0.1.8
[bpt/coccinelle.git]
/
tests
/
km.cocci
Commit
Line
Data
34e49164
C
1
@@
2
type T, T2;
3
expression x;
4
expression E1,E2;
5
@@
6
7
- x = (T)kmalloc(E1,E2)
708f4980
8
+ x = kzalloc(E1, E2)
34e49164
C
9
...
10
(
11
- memset((T2)x,0,E1);
12
|
13
- memset((T2)x,0,sizeof(*x));
14
)