repo.or.cz
/
git
/
raj.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remote rename: demonstrate a bogus "remote exists" bug
[git/raj.git]
/
contrib
/
coccinelle
/
array.cocci
blob
2d7f25d99f0754e82e2d0615ebd42b02d8fe5a66
1
@@
2
type T;
3
T *dst;
4
T *src;
5
expression n;
6
@@
7
- memcpy(dst, src, n * sizeof(*dst));
8
+ COPY_ARRAY(dst, src, n);
9
10
@@
11
type T;
12
T *dst;
13
T *src;
14
expression n;
15
@@
16
- memcpy(dst, src, n * sizeof(*src));
17
+ COPY_ARRAY(dst, src, n);
18
19
@@
20
type T;
21
T *dst;
22
T *src;
23
expression n;
24
@@
25
- memcpy(dst, src, n * sizeof(T));
26
+ COPY_ARRAY(dst, src, n);