diff options
| author | Julia Lawall <[email protected]> | 2009-11-12 23:08:36 +0100 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2010-02-04 11:55:46 +0100 |
| commit | 7e2a10836c0455cb3ca397f89b8280496148d571 (patch) | |
| tree | 26a00a1581727fb1177e509826bedd727b53a265 /include/linux/timerqueue.h | |
| parent | fe9a2302230fa287715a11a3d3aec74eec75a6a4 (diff) | |
fs/qnx4: decrement sizeof size in strncmp
As an identical match is wanted in this case, strcmp can be used instead.
The semantic match that lead to detecting this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression foo;
constant char *abc;
@@
*strncmp(foo, abc, sizeof(abc))
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Anders Larsen <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions